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

25 lines
685 B
Nix
Raw Normal View History

2017-07-13 03:49:21 +02:00
{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
buildPythonPackage rec {
pname = "pyslurm";
version = "20171102";
name = pname + "-" + version;
2017-07-13 03:49:21 +02:00
src = fetchFromGitHub {
repo = "pyslurm";
owner = "PySlurm";
rev = "a2acbc820da419e308c5817998d2abe78a7b75e6";
sha256 = "1wmlx5fh1xzjyksvmq7i083hmyvs7id61ysk2d9hbmf8rza498as";
2017-07-13 03:49:21 +02: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 03:49:21 +02:00
description = "Python bindings to Slurm";
license = licenses.gpl2;
maintainers = [ maintainers.veprbl ];
};
}