nixpkgs/pkgs/development/python-modules/pyslurm/default.nix

27 lines
720 B
Nix
Raw Normal View History

2017-07-13 02:49:21 +01:00
{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
buildPythonPackage rec {
pname = "pyslurm";
2018-10-27 21:16:07 +01:00
version = "18-08-3";
2017-07-13 02:49:21 +01:00
src = fetchFromGitHub {
repo = "pyslurm";
owner = "PySlurm";
2018-10-27 21:16:07 +01:00
rev = version;
sha256 = "1rymx106xa99wd4n44s7jw0w41spg39y1ji4fgn01yk7wjfrdrwg";
2017-07-13 02:49:21 +01:00
};
buildInputs = [ cython slurm ];
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
# 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; {
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 ];
};
}