nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 60 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, graphviz 5, stdlib-list 6, pytestCheckHook 7, pythonOlder 8, pyyaml 9}: 10 11buildPythonPackage rec { 12 pname = "pydeps"; 13 version = "1.10.18"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "thebjorn"; 20 repo = pname; 21 rev = "v${version}"; 22 hash = "sha256-AKpaGXUaKCVk1C8GqtWayZEU2xbz3eqbUenjZCtsAUY="; 23 }; 24 25 buildInputs = [ 26 graphviz 27 ]; 28 29 propagatedBuildInputs = [ 30 graphviz 31 stdlib-list 32 ]; 33 34 checkInputs = [ 35 pytestCheckHook 36 pyyaml 37 ]; 38 39 postPatch = '' 40 # Path is hard-coded 41 substituteInPlace pydeps/dot.py \ 42 --replace "dot -Gstart=1" "${lib.makeBinPath [ graphviz ]}/dot -Gstart=1" 43 ''; 44 45 disabledTests = [ 46 # Would require to have additional modules available 47 "test_find_package_names" 48 ]; 49 50 pythonImportsCheck = [ 51 "pydeps" 52 ]; 53 54 meta = with lib; { 55 description = "Python module dependency visualization"; 56 homepage = "https://github.com/thebjorn/pydeps"; 57 license = licenses.bsd2; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}