1{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }: 2 3buildPythonPackage rec { 4 pname = "pyslurm"; 5 version = "19-05-0"; 6 7 src = fetchFromGitHub { 8 repo = "pyslurm"; 9 owner = "PySlurm"; 10 rev = version; 11 sha256 = "1lfb4q81y96syz5an1lzscfcvmfvlkf4cfl3i5zllw9r3gbarl2r"; 12 }; 13 14 buildInputs = [ cython slurm ]; 15 setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ]; 16 17 # Test cases need /etc/slurm/slurm.conf and require a working slurm installation 18 doCheck = false; 19 20 meta = with lib; { 21 homepage = "https://github.com/PySlurm/pyslurm"; 22 description = "Python bindings to Slurm"; 23 license = licenses.gpl2; 24 maintainers = with maintainers; [ bhipple ]; 25 platforms = platforms.linux; 26 broken = true; # still needs slurm-19.05, but nixpkgs has slurm-20+ now 27 }; 28}