mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
27 lines
756 B
Nix
27 lines
756 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyslurm";
|
|
version = "20180908";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "pyslurm";
|
|
owner = "PySlurm";
|
|
rev = "50dc113e99d82e70e84fc2e812333733708be4ed";
|
|
sha256 = "1j2i4rvhmk2ihhcvsjdlqlxqb5a05jg8k9bqkv3zrvdj71yn4z9k";
|
|
};
|
|
|
|
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;
|
|
|
|
meta = with lib; {
|
|
homepage = https://github.com/PySlurm/pyslurm;
|
|
description = "Python bindings to Slurm";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.veprbl ];
|
|
};
|
|
}
|