2017-07-13 02:49:21 +01:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "pyslurm";
|
2018-06-25 13:58:04 +01:00
|
|
|
version = "20180604";
|
2017-07-13 02:49:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyslurm";
|
|
|
|
owner = "PySlurm";
|
2018-06-25 13:58:04 +01:00
|
|
|
rev = "9dd4817e785fee138a9e29c3d71d2ea44898eedc";
|
|
|
|
sha256 = "14ivwc27sjnk0z0jpfgyy9bd91m2bhcz11lzp1kk9xn4495i7wvj";
|
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; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/PySlurm/pyslurm;
|
2017-07-13 02:49:21 +01:00
|
|
|
description = "Python bindings to Slurm";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.veprbl ];
|
|
|
|
};
|
|
|
|
}
|