2022-04-14 22:01:18 +02:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, cython
|
|
|
|
, slurm
|
|
|
|
}:
|
2017-07-13 04:49:21 +03:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 19:26:09 +08:00
|
|
|
pname = "pyslurm";
|
2022-09-09 17:21:28 +00:00
|
|
|
version = "22.5.0";
|
2022-04-14 22:01:18 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-07-13 04:49:21 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "pyslurm";
|
|
|
|
owner = "PySlurm";
|
2022-09-09 17:21:28 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-Uh0P7Kevcc78vWT/Zk+MUCKh2AlDiRR3MO/nOke2yP0=";
|
2017-07-13 04:49:21 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cython slurm ];
|
2022-04-14 22:01:18 +02:00
|
|
|
|
2017-07-13 04:49:21 +03:00
|
|
|
setupPyBuildFlags = [ "--slurm-lib=${slurm}/lib" "--slurm-inc=${slurm.dev}/include" ];
|
|
|
|
|
2018-06-25 08:58:04 -04:00
|
|
|
# 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; {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/PySlurm/pyslurm";
|
2017-07-13 04:49:21 +03:00
|
|
|
description = "Python bindings to Slurm";
|
|
|
|
license = licenses.gpl2;
|
2019-12-27 13:51:11 -05:00
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2021-01-28 18:43:25 +01:00
|
|
|
platforms = platforms.linux;
|
2017-07-13 04:49:21 +03:00
|
|
|
};
|
|
|
|
}
|