Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 32 lines 904 B view raw
1{ buildPythonPackage, fetchPypi, lib, isPy3k 2, pkgconfig, igraph 3, texttable }: 4 5buildPythonPackage rec { 6 pname = "python-igraph"; 7 version = "0.8.2"; 8 disabled = !isPy3k; # fails to build 9 10 nativeBuildInputs = [ pkgconfig ]; 11 buildInputs = [ igraph ]; 12 propagatedBuildInputs = [ texttable ]; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "4601638d7d22eae7608cdf793efac75e6c039770ec4bd2cecf76378c84ce7d72"; 17 }; 18 19 # NB: We want to use our igraph, not vendored igraph, but even with 20 # pkg-config on the PATH, their custom setup.py still needs to be explicitly 21 # told to do it. ~ C. 22 setupPyGlobalFlags = [ "--use-pkg-config" ]; 23 24 doCheck = !isPy3k; 25 26 meta = { 27 description = "High performance graph data structures and algorithms"; 28 homepage = "https://igraph.org/python/"; 29 license = lib.licenses.gpl2; 30 maintainers = [ lib.maintainers.MostAwesomeDude ]; 31 }; 32}