mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-29 11:44:39 +00:00
40 lines
822 B
Nix
40 lines
822 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
pyflakes,
|
|
pytestCheckHook,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "autoflake";
|
|
version = "2.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-73xJbZvOnSzvBJ8k5ILR0wkMN/vUTl6F37ANs8eO4Ww=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
propagatedBuildInputs = [ pyflakes ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "autoflake" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError: True is not false
|
|
"test_is_literal_or_name"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tool to remove unused imports and unused variables";
|
|
mainProgram = "autoflake";
|
|
homepage = "https://github.com/myint/autoflake";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ yuriaisaka ];
|
|
};
|
|
}
|