{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }: buildPythonPackage rec { pname = "pyslurm"; version = "20171102"; name = pname + "-" + version; src = fetchFromGitHub { repo = "pyslurm"; owner = "PySlurm"; rev = "a2acbc820da419e308c5817998d2abe78a7b75e6"; sha256 = "1wmlx5fh1xzjyksvmq7i083hmyvs7id61ysk2d9hbmf8rza498as"; }; 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 ]; }; }