Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 814 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, hatchling 5, pyflakes 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "autoflake"; 11 version = "2.0.1"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-HOUgExt/OWkVJC/pHlciH01CQIUpu+Ouk62v7ShlkeA="; 17 }; 18 19 nativeBuildInputs = [ 20 hatchling 21 ]; 22 23 propagatedBuildInputs = [ 24 pyflakes 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "autoflake" 33 ]; 34 35 disabledTests = [ 36 # AssertionError: True is not false 37 "test_is_literal_or_name" 38 ]; 39 40 meta = with lib; { 41 description = "Tool to remove unused imports and unused variables"; 42 homepage = "https://github.com/myint/autoflake"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ yuriaisaka ]; 45 }; 46}