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

28 lines
818 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, fetchpatch, buildPythonPackage, cython, slurm }:
2017-07-13 01:49:21 +00:00
buildPythonPackage rec {
pname = "pyslurm";
version = "19-05-0";
2017-07-13 01:49:21 +00:00
src = fetchFromGitHub {
repo = "pyslurm";
owner = "PySlurm";
2018-10-27 20:16:07 +00:00
rev = version;
sha256 = "1lfb4q81y96syz5an1lzscfcvmfvlkf4cfl3i5zllw9r3gbarl2r";
2017-07-13 01:49:21 +00: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 01:49:21 +00:00
meta = with lib; {
homepage = "https://github.com/PySlurm/pyslurm";
2017-07-13 01:49:21 +00:00
description = "Python bindings to Slurm";
license = licenses.gpl2;
maintainers = with maintainers; [ bhipple ];
2020-09-16 10:01:26 +00:00
broken = true; # still needs slurm-19.05, but nixpkgs has slurm-20+ now
2017-07-13 01:49:21 +00:00
};
}