Files
nixpkgs/pkgs/development/python-modules/autoflake/default.nix
Fabian Affolter ead2ca9748 python3Packages.autoflake: 2.3.2 -> 2.4.0
This commit was automatically generated using update-python-libraries.
2026-08-25 01:24:06 +02:00

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 ];
};
}