mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
pythonPackages.pyslurm: implement a less strict slurm version check
This commit is contained in:
parent
dfce20e4e3
commit
b69d481d74
1 changed files with 14 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
|
||||
{ lib, fetchFromGitHub, fetchpatch, buildPythonPackage, cython, slurm }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyslurm";
|
||||
|
@ -11,6 +11,19 @@ buildPythonPackage rec {
|
|||
sha256 = "1rymx106xa99wd4n44s7jw0w41spg39y1ji4fgn01yk7wjfrdrwg";
|
||||
};
|
||||
|
||||
# Needed for patch below to apply
|
||||
prePatch = ''
|
||||
sed -i -e '/__max_slurm_hex_version__ = "0x1208/c__max_slurm_hex_version__ = "0x120804"' setup.py
|
||||
'';
|
||||
|
||||
patches = [
|
||||
# Implements a less strict slurm version check
|
||||
(fetchpatch {
|
||||
url = "https://github.com/PySlurm/pyslurm/commit/d3703f2d58b5177d29092fe1aae1f7a96da61765.diff";
|
||||
sha256 = "1s41z9bhzhplgg08p1llc3i8zw20r1479s04y0l1vx0ak51b6w0k";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ cython slurm ];
|
||||
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue