1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pyslurm/default.nix
Benjamin Hipple 39f357a836 slurm: 17.11.5 -> 17.11.7, pyslurm: 20180427 -> 20180604 (#42536)
* slurm: 17.11.5 -> 17.11.7, pyslurm: 20180427 -> 20180604

This commit also swaps to use the official repository's github release tags
instead of their download site, which only keeps the most recent version with no
historical archives.

* Document why we don't run tests

* Remove dead testing code
2018-06-25 14:58:04 +02:00

27 lines
756 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, cython, slurm }:
buildPythonPackage rec {
pname = "pyslurm";
version = "20180604";
src = fetchFromGitHub {
repo = "pyslurm";
owner = "PySlurm";
rev = "9dd4817e785fee138a9e29c3d71d2ea44898eedc";
sha256 = "14ivwc27sjnk0z0jpfgyy9bd91m2bhcz11lzp1kk9xn4495i7wvj";
};
buildInputs = [ cython slurm ];
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
# Test cases need /etc/slurm/slurm.conf and require a working slurm installation
doCheck = false;
meta = with lib; {
homepage = https://github.com/PySlurm/pyslurm;
description = "Python bindings to Slurm";
license = licenses.gpl2;
maintainers = [ maintainers.veprbl ];
};
}