python3Packages.python-igraph: 0.8.3 -> 0.9.1
This commit is contained in:
parent
1ab59fc716
commit
5c3da3f7ad
@ -1,32 +1,54 @@
|
|||||||
{ buildPythonPackage, fetchPypi, lib, isPy3k
|
{ lib
|
||||||
, pkg-config, igraph
|
, buildPythonPackage
|
||||||
, texttable }:
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, igraph
|
||||||
|
, texttable
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-igraph";
|
pname = "python-igraph";
|
||||||
version = "0.8.3";
|
version = "0.9.1";
|
||||||
disabled = !isPy3k; # fails to build
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
disabled = pythonOlder "3.6";
|
||||||
buildInputs = [ igraph ];
|
|
||||||
propagatedBuildInputs = [ texttable ];
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "igraph";
|
||||||
sha256 = "e1f27622eddeb2bd5fdcbadb41ef048e884790bb050f9627c086dc609d0f1236";
|
repo = "python-igraph";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1ldyzza25zvwh144lw8x856z76s8gfvnbdm56fcmwkvm7aj81npw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
igraph
|
||||||
|
igraph.dev
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
texttable
|
||||||
|
];
|
||||||
|
|
||||||
# NB: We want to use our igraph, not vendored igraph, but even with
|
# 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
|
# pkg-config on the PATH, their custom setup.py still needs to be explicitly
|
||||||
# told to do it. ~ C.
|
# told to do it. ~ C.
|
||||||
setupPyGlobalFlags = [ "--use-pkg-config" ];
|
setupPyGlobalFlags = [ "--use-pkg-config" ];
|
||||||
|
|
||||||
doCheck = !isPy3k;
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [ "igraph" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "High performance graph data structures and algorithms";
|
description = "High performance graph data structures and algorithms";
|
||||||
homepage = "https://igraph.org/python/";
|
homepage = "https://igraph.org/python/";
|
||||||
license = lib.licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [ lib.maintainers.MostAwesomeDude ];
|
maintainers = with maintainers; [ MostAwesomeDude dotlambda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user