uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
79
pkgs/development/python-modules/diff-cover/default.nix
Normal file
79
pkgs/development/python-modules/diff-cover/default.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, chardet
|
||||
, fetchPypi
|
||||
, jinja2
|
||||
, jinja2_pluralize
|
||||
, pluggy
|
||||
, pycodestyle
|
||||
, pyflakes
|
||||
, pygments
|
||||
, pylint
|
||||
, pytest-datadir
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, tomli
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "diff-cover";
|
||||
version = "6.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "diff_cover";
|
||||
inherit version;
|
||||
hash = "sha256-N2O0/C75EGO6crUCFGUiJLLQqfMVRNVQRZb1xKhHzXs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
chardet
|
||||
jinja2
|
||||
jinja2_pluralize
|
||||
pluggy
|
||||
pygments
|
||||
tomli
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pycodestyle
|
||||
pyflakes
|
||||
pylint
|
||||
pytest-datadir
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests check for flake8
|
||||
"file_does_not_exist"
|
||||
# AssertionError: assert '.c { color:...
|
||||
"test_style_defs"
|
||||
# uses pytest.approx in a boolean context, which is unsupported since pytest7
|
||||
"test_percent_covered"
|
||||
# assert '<!DOCTYPE ht...ody>\n</html>' == '<!DOCTYPE ht...ody>\n</html>'
|
||||
"test_html_with_external_css"
|
||||
# assert '<table class...</tr></table>' == '<div class=".../table></div>'
|
||||
"test_format"
|
||||
"test_format_with_invalid_violation_lines"
|
||||
"test_no_filename_ext"
|
||||
"test_unicode"
|
||||
"test_load_snippets_html"
|
||||
"test_load_utf8_snippets"
|
||||
"test_load_declared_arabic"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"diff_cover"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Automatically find diff lines that need test coverage";
|
||||
homepage = "https://github.com/Bachmann1234/diff-cover";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dzabraev ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue