Commit 66855302 authored by Markus Kowalewski's avatar Markus Kowalewski
Browse files

pythonPackages.pyslurm: add patch to fix build

parent 2f479ac1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
{ lib
, pythonOlder
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, cython
, slurm
@@ -20,6 +21,12 @@ buildPythonPackage rec {
    hash = "sha256-M8seh5pkw2OTiDU4O96D0Lg3+FrlB2w4ehy53kSxyoU=";
  };

  patches = [ (fetchpatch {
    name = "remove-undeclared-KILL_JOB_ARRAY";
    url = "https://github.com/PySlurm/pyslurm/commit/f7a7d8beb8ceb4e4c1b248bab2ebb995dcae77e2.patch";
    hash = "sha256-kQLGiGzAhqP8Z6pObz9vdTRdITd12w7KuUDXsfyLIU8=";
  })];

  buildInputs = [ cython slurm ];

  setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];