2019-05-09 18:45:24 +01:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, isPy3k
|
2020-06-26 09:22:00 +01:00
|
|
|
, pkgconfig, igraph
|
|
|
|
, texttable }:
|
2018-06-29 05:41:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-igraph";
|
2020-10-15 22:45:51 +01:00
|
|
|
version = "0.8.3";
|
2020-08-15 23:49:13 +01:00
|
|
|
disabled = !isPy3k; # fails to build
|
2018-06-29 05:41:45 +01:00
|
|
|
|
2019-05-09 18:45:24 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ igraph ];
|
2020-06-26 09:22:00 +01:00
|
|
|
propagatedBuildInputs = [ texttable ];
|
2018-06-29 05:41:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-15 22:45:51 +01:00
|
|
|
sha256 = "e1f27622eddeb2bd5fdcbadb41ef048e884790bb050f9627c086dc609d0f1236";
|
2018-06-29 05:41:45 +01:00
|
|
|
};
|
|
|
|
|
2020-06-26 09:22:00 +01:00
|
|
|
# NB: We want to use our igraph, not vendored igraph, but even with
|
|
|
|
# pkg-config on the PATH, their custom setup.py still needs to be explicitly
|
|
|
|
# told to do it. ~ C.
|
|
|
|
setupPyGlobalFlags = [ "--use-pkg-config" ];
|
|
|
|
|
2019-05-09 18:45:24 +01:00
|
|
|
doCheck = !isPy3k;
|
|
|
|
|
2018-06-29 05:41:45 +01:00
|
|
|
meta = {
|
|
|
|
description = "High performance graph data structures and algorithms";
|
2019-05-09 18:45:24 +01:00
|
|
|
homepage = "https://igraph.org/python/";
|
2018-06-29 05:41:45 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
|
|
|
};
|
|
|
|
}
|