mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
53c8f97a53
- add pythonImportsCheck - disable failing test
38 lines
742 B
Nix
38 lines
742 B
Nix
{ lib
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "autoflake";
|
|
version = "1.4";
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-YaNTASz/arlMoGKCPR+y9pLErNpRx2/4Oo13kV+6Ueo=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pyflakes
|
|
];
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"autoflake"
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: True is not false
|
|
"test_is_literal_or_name"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to remove unused imports and unused variables";
|
|
homepage = "https://github.com/myint/autoflake";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ yuriaisaka ];
|
|
};
|
|
}
|