at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 cloudpickle, 7 flit-core, 8 typing-extensions, 9 pytestCheckHook, 10 pytest-asyncio, 11}: 12 13buildPythonPackage rec { 14 pname = "submitit"; 15 version = "1.5.2"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "facebookincubator"; 20 repo = "submitit"; 21 tag = version; 22 hash = "sha256-PDQLzqQjoBAZM9FKsoRby26Pbh4nik3SltIHUw/xWcY="; 23 }; 24 25 build-system = [ 26 setuptools 27 ]; 28 29 dependencies = [ 30 cloudpickle 31 flit-core 32 typing-extensions 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pytest-asyncio 38 ]; 39 40 pythonImportsCheck = [ 41 "submitit" 42 ]; 43 44 disabledTests = [ 45 # These tests are broken 46 "test_snapshot" 47 "test_snapshot_excludes" 48 "test_job_use_snapshot_cwd" 49 "test_job_use_snapshot_modules" 50 "test_nested_pickling" 51 "test_setup" 52 "test_requeuing" 53 ]; 54 55 meta = { 56 changelog = "https://github.com/facebookincubator/submitit/releases/tag/${version}"; 57 description = "Python 3.8+ toolbox for submitting jobs to Slurm"; 58 homepage = "https://github.com/facebookincubator/submitit"; 59 license = lib.licenses.mit; 60 maintainers = with lib.maintainers; [ ]; 61 }; 62}