15 buildPythonPackage rec {
19 disabled = pythonOlder "3.8";
23 src = fetchFromGitHub {
25 repo = "python-igraph";
26 rev = "refs/tags/${version}";
27 hash = "sha256-sR9OqsBxP2DvcYz1dhIP29rrQ56CRKW02oNAXUNttio=";
43 propagatedBuildInputs = [
47 passthru.optional-dependencies = {
48 cairo = [ cairocffi ];
49 matplotlib = [ matplotlib ];
51 plotting = [ cairocffi ];
54 # NB: We want to use our igraph, not vendored igraph, but even with
55 # pkg-config on the PATH, their custom setup.py still needs to be explicitly
57 env.IGRAPH_USE_PKG_CONFIG = true;
61 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
68 pythonImportsCheck = [ "igraph" ];
71 description = "High performance graph data structures and algorithms";
72 mainProgram = "igraph";
73 homepage = "https://igraph.org/python/";
74 changelog = "https://github.com/igraph/python-igraph/blob/${src.rev}/CHANGELOG.md";
75 license = licenses.gpl2Plus;
76 maintainers = with maintainers; [ MostAwesomeDude dotlambda ];