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";
|
|
|
|
version = "unstable-69e4f4f";
|
|
|
|
name = pname + "-" + version;
|
2017-07-13 02:49:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyslurm";
|
|
|
|
owner = "PySlurm";
|
|
|
|
rev = "69e4f4fd66003b98ddb7da25613fe641d4ae160d";
|
|
|
|
sha256 = "051kafkndbniklxyf0drb360aiblnqcf9rqjbvmqh66zrfya1m28";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./pyslurm-dlfcn.patch ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|