Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 859 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pint 5, pythonOlder 6, pytestCheckHook 7, toml 8}: 9 10buildPythonPackage rec { 11 pname = "vulture"; 12 version = "2.7"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-Z/uAoBTtn9tZndRLuWy1QxEDKhBBBvwucG73ptrYgDI="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.cfg \ 24 --replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" "" 25 ''; 26 27 propagatedBuildInputs = [ 28 toml 29 ]; 30 31 nativeCheckInputs = [ 32 pint 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ 37 "vulture" 38 ]; 39 40 meta = with lib; { 41 description = "Finds unused code in Python programs"; 42 homepage = "https://github.com/jendrikseipp/vulture"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ mcwitt ]; 45 }; 46}