33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, igraph
|
|
, texttable
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "igraph";
|
|
version = "0.10.3";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "igraph";
|
|
repo = "python-igraph";
|
|
rev = version;
|
|
hash = "sha256-j7c1CtZ796EYMsS11kd8YED7pPolskgT+611uvePTsA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm -r vendor
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
igraph
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
texttable
|
|
];
|
|
|
|
# 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" ];
|
|
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "igraph" ];
|
|
|
|
meta = with lib; {
|
|
description = "High performance graph data structures and algorithms";
|
|
homepage = "https://igraph.org/python/";
|
|
changelog = "https://github.com/igraph/python-igraph/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ MostAwesomeDude dotlambda ];
|
|
};
|
|
}
|