1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 13:29:13 +03:00
nixpkgs/pkgs/development/python-modules/pyslurm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
851 B
Nix
Raw Normal View History

{ lib
, pythonOlder
, fetchFromGitHub
, buildPythonPackage
, cython
, slurm
}:
2017-07-13 04:49:21 +03:00
buildPythonPackage rec {
pname = "pyslurm";
version = "22.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-07-13 04:49:21 +03:00
src = fetchFromGitHub {
repo = "pyslurm";
owner = "PySlurm";
rev = "refs/tags/v${version}";
hash = "sha256-Uh0P7Kevcc78vWT/Zk+MUCKh2AlDiRR3MO/nOke2yP0=";
2017-07-13 04:49:21 +03:00
};
buildInputs = [ cython slurm ];
2017-07-13 04:49:21 +03:00
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;
2017-07-13 04:49:21 +03:00
meta = with lib; {
homepage = "https://github.com/PySlurm/pyslurm";
2017-07-13 04:49:21 +03:00
description = "Python bindings to Slurm";
license = licenses.gpl2;
maintainers = with maintainers; [ bhipple ];
platforms = platforms.linux;
2017-07-13 04:49:21 +03:00
};
}