python312Packages.pyslurm: remove patch; unbreak

This commit is contained in:
annalee
2024-05-11 02:41:13 +00:00
parent adc41e1e3e
commit bb1ae84684
@@ -1,8 +1,8 @@
{ lib
, pythonOlder
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, setuptools
, cython
, slurm
}:
@@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "pyslurm";
version = "23.11.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
@@ -21,15 +21,16 @@ buildPythonPackage rec {
hash = "sha256-Qi0XftneKj7hdDiLY2hoRONRrPv49mfQlvlNkudH54Y=";
};
patches = [ (fetchpatch {
name = "remove-undeclared-KILL_JOB_ARRAY";
url = "https://github.com/PySlurm/pyslurm/commit/f7a7d8beb8ceb4e4c1b248bab2ebb995dcae77e2.patch";
hash = "sha256-kQLGiGzAhqP8Z6pObz9vdTRdITd12w7KuUDXsfyLIU8=";
})];
nativeBuildInputs = [
setuptools
];
buildInputs = [ cython slurm ];
setupPyBuildFlags = [ "--slurm-lib=${lib.getLib slurm}/lib" "--slurm-inc=${lib.getDev slurm}/include" ];
env = {
SLURM_LIB_DIR = "${lib.getLib slurm}/lib";
SLURM_INCLUDE_DIR = "${lib.getDev slurm}/include";
};
# Test cases need /etc/slurm/slurm.conf and require a working slurm installation
doCheck = false;