https://github.com/PySlurm/pyslurm/releases/tag/v25.5.0 Currently, pyslurm is incompatible with the slurm version we ship.
48 lines
935 B
Nix
48 lines
935 B
Nix
{
|
|
lib,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
cython,
|
|
slurm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyslurm";
|
|
version = "25.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "pyslurm";
|
|
owner = "PySlurm";
|
|
tag = "v${version}";
|
|
hash = "sha256-2FEBOKMN3IhJZu+QQ3nWQfxom6wpZUuQouF7TRYndTs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
buildInputs = [
|
|
cython
|
|
slurm
|
|
];
|
|
|
|
env = {
|
|
SLURM_LIB_DIR = "${lib.getLib slurm}/lib";
|
|
SLURM_INCLUDE_DIR = "${lib.getDev slurm}/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 = with maintainers; [ bhipple ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|