2017-07-13 03:49:21 +02:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "pyslurm";
|
2018-09-08 23:16:37 +02:00
|
|
|
version = "20180908";
|
2017-07-13 03:49:21 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyslurm";
|
|
|
|
owner = "PySlurm";
|
2018-09-08 23:16:37 +02:00
|
|
|
rev = "50dc113e99d82e70e84fc2e812333733708be4ed";
|
|
|
|
sha256 = "1j2i4rvhmk2ihhcvsjdlqlxqb5a05jg8k9bqkv3zrvdj71yn4z9k";
|
2017-07-13 03:49:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cython slurm ];
|
|
|
|
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
|
|
|
|
|
2018-06-25 14:58:04 +02:00
|
|
|
# Test cases need /etc/slurm/slurm.conf and require a working slurm installation
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-07-13 03:49:21 +02:00
|
|
|
meta = with lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/PySlurm/pyslurm;
|
2017-07-13 03:49:21 +02:00
|
|
|
description = "Python bindings to Slurm";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.veprbl ];
|
|
|
|
};
|
|
|
|
}
|