mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 09:10:08 +00:00
44 lines
950 B
Nix
44 lines
950 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pyflakes,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "autoflake";
|
|
version = "2.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyCQA";
|
|
repo = "autoflake";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Th2MyC6Yu+OLF7WZCG1e5VQqBIGz6Eaxx2dTaEpqTtA=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ pyflakes ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "autoflake" ];
|
|
|
|
enabledTestPaths = [
|
|
"test_autoflake.py"
|
|
"test_fuzz.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tool to remove unused imports and unused variables";
|
|
homepage = "https://github.com/PyCQA/autoflake";
|
|
changelog = "https://github.com/PyCQA/autoflake/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ yuriaisaka ];
|
|
mainProgram = "autoflake";
|
|
};
|
|
})
|