mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 13:06:32 +01:00
52 lines
1,005 B
Nix
52 lines
1,005 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cloudpickle,
|
|
flit-core,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "submitit";
|
|
version = "1.5.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "facebookincubator";
|
|
repo = "submitit";
|
|
tag = version;
|
|
hash = "sha256-Q/2mC7viLYl8fx7dtQueZqT191EbERZPfN0WkTS/U1w=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [
|
|
cloudpickle
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"submitit"
|
|
];
|
|
|
|
disabledTests = [
|
|
# These tests are broken
|
|
"test_setup"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/facebookincubator/submitit/releases/tag/${version}";
|
|
description = "Python 3.8+ toolbox for submitting jobs to Slurm";
|
|
homepage = "https://github.com/facebookincubator/submitit";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.nickcao ];
|
|
};
|
|
}
|