nixpkgs/pkgs/development/python-modules/pyslurm/default.nix
2018-03-18 01:14:24 -04:00

23 lines
653 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
buildPythonPackage rec {
pname = "pyslurm";
version = "20170302";
src = fetchFromGitHub {
repo = "pyslurm";
owner = "PySlurm";
rev = "f5a756f199da404ec73cb7fcd7f04ec4d21ea3ff";
sha256 = "1xn321nc8i8zmngh537j6lnng1rhdp460qx4skvh9daz5h9nxznx";
};
buildInputs = [ cython slurm ];
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
meta = with lib; {
homepage = https://github.com/PySlurm/pyslurm;
description = "Python bindings to Slurm";
license = licenses.gpl2;
maintainers = [ maintainers.veprbl ];
};
}