nixpkgs/pkgs/development/python-modules/python-igraph/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

33 lines
906 B
Nix

{ buildPythonPackage, fetchPypi, lib, isPy3k
, pkg-config, igraph
, texttable }:
buildPythonPackage rec {
pname = "python-igraph";
version = "0.8.3";
disabled = !isPy3k; # fails to build
nativeBuildInputs = [ pkg-config ];
buildInputs = [ igraph ];
propagatedBuildInputs = [ texttable ];
src = fetchPypi {
inherit pname version;
sha256 = "e1f27622eddeb2bd5fdcbadb41ef048e884790bb050f9627c086dc609d0f1236";
};
# 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" ];
doCheck = !isPy3k;
meta = {
description = "High performance graph data structures and algorithms";
homepage = "https://igraph.org/python/";
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.MostAwesomeDude ];
};
}