2019-02-13 04:00:30 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, buildPythonPackage, cython, slurm }:
|
2017-07-13 02:49:21 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "pyslurm";
|
2019-08-14 23:19:20 +01:00
|
|
|
version = "19-05-0";
|
2017-07-13 02:49:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyslurm";
|
|
|
|
owner = "PySlurm";
|
2018-10-27 21:16:07 +01:00
|
|
|
rev = version;
|
2019-08-14 23:19:20 +01:00
|
|
|
sha256 = "1lfb4q81y96syz5an1lzscfcvmfvlkf4cfl3i5zllw9r3gbarl2r";
|
2017-07-13 02:49:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cython slurm ];
|
|
|
|
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
|
|
|
|
|
2018-06-25 13:58:04 +01:00
|
|
|
# Test cases need /etc/slurm/slurm.conf and require a working slurm installation
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-07-13 02:49:21 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/PySlurm/pyslurm";
|
2017-07-13 02:49:21 +01:00
|
|
|
description = "Python bindings to Slurm";
|
|
|
|
license = licenses.gpl2;
|
2019-12-27 18:51:11 +00:00
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2021-01-28 17:43:25 +00:00
|
|
|
platforms = platforms.linux;
|
2020-09-16 11:01:26 +01:00
|
|
|
broken = true; # still needs slurm-19.05, but nixpkgs has slurm-20+ now
|
2017-07-13 02:49:21 +01:00
|
|
|
};
|
|
|
|
}
|