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