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-01-09 07:09:11 +00:00
|
|
|
version = "20171102";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-07-13 02:49:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyslurm";
|
|
|
|
owner = "PySlurm";
|
2018-01-09 07:09:11 +00:00
|
|
|
rev = "a2acbc820da419e308c5817998d2abe78a7b75e6";
|
|
|
|
sha256 = "1wmlx5fh1xzjyksvmq7i083hmyvs7id61ysk2d9hbmf8rza498as";
|
2017-07-13 02:49:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cython slurm ];
|
|
|
|
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|