Commit c01df6d6 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent 1be7ffb2
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -3,24 +3,25 @@
, pythonOlder
, fetchFromGitHub
, pkg-config
, setuptools
, igraph
, texttable
, unittestCheckHook
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "igraph";
  version = "0.11.3";
  version = "0.11.4";

  disabled = pythonOlder "3.8";

  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "igraph";
    repo = "python-igraph";
    rev = "refs/tags/${version}";
    hash = "sha256-Pki0ygcQeuC5E4SwhzGX7oIe9LUSgoBKiXbtcpjL3ng=";
    hash = "sha256-sR9OqsBxP2DvcYz1dhIP29rrQ56CRKW02oNAXUNttio=";
  };

  postPatch = ''
@@ -29,6 +30,7 @@ buildPythonPackage rec {

  nativeBuildInputs = [
    pkg-config
    setuptools
  ];

  buildInputs = [
@@ -42,10 +44,10 @@ buildPythonPackage rec {
  # 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" ];
  env.IGRAPH_USE_PKG_CONFIG = true;

  nativeCheckInputs = [
    unittestCheckHook
    pytestCheckHook
  ];

  pythonImportsCheck = [ "igraph" ];