nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 46 lines 911 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pint, 6 pytest-cov-stub, 7 pytestCheckHook, 8 setuptools, 9 toml, 10}: 11 12buildPythonPackage rec { 13 pname = "vulture"; 14 version = "2.14"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-y4J3kCoRON7qt5bsW+9wdqbgJIyjYHo/Pe4LbZ6bhBU="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 nativeCheckInputs = [ 25 pint 26 pytest-cov-stub 27 pytestCheckHook 28 toml 29 ]; 30 31 disabledTestPaths = [ 32 # missing pytype package/executable 33 "tests/test_pytype.py" 34 ]; 35 36 pythonImportsCheck = [ "vulture" ]; 37 38 meta = { 39 description = "Finds unused code in Python programs"; 40 homepage = "https://github.com/jendrikseipp/vulture"; 41 changelog = "https://github.com/jendrikseipp/vulture/releases/tag/v${version}"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ mcwitt ]; 44 mainProgram = "vulture"; 45 }; 46}