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

24 lines
653 B
Nix
Raw Normal View History

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