mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
autoflake: switch to pytestCheckHook
- add pythonImportsCheck - disable failing test
This commit is contained in:
parent
c422b6566c
commit
53c8f97a53
@ -1,22 +1,36 @@
|
|||||||
{ lib, python3Packages }:
|
{ lib
|
||||||
|
, python3
|
||||||
|
}:
|
||||||
|
|
||||||
with python3Packages;
|
python3.pkgs.buildPythonApplication rec {
|
||||||
buildPythonApplication rec {
|
|
||||||
pname = "autoflake";
|
pname = "autoflake";
|
||||||
version = "1.4";
|
version = "1.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = python3.pkgs.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "61a353012cff6ab94ca062823d1fb2f692c4acda51c76ff83a8d77915fba51ea";
|
hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyflakes ];
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
pyflakes
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
checkInputs = with python3.pkgs; [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"autoflake"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# AssertionError: True is not false
|
||||||
|
"test_is_literal_or_name"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Tool to remove unused imports and unused variables";
|
||||||
homepage = "https://github.com/myint/autoflake";
|
homepage = "https://github.com/myint/autoflake";
|
||||||
description = "A simple program which removes unused imports and unused variables as reported by pyflakes";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ yuriaisaka ];
|
maintainers = with maintainers; [ yuriaisaka ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user