10 buildPythonPackage rec {
15 disabled = pythonOlder "3.9";
17 src = fetchFromGitHub {
18 owner = "singularityhub";
19 repo = "singularity-cli";
20 rev = "refs/tags/${version}";
21 hash = "sha256-PNMzqnKb691wcd8aGSleqHOcsUrahl8e0r5s5ek5GmQ=";
25 substituteInPlace setup.py \
26 --replace-fail '"pytest-runner"' ""
29 build-system = [ setuptools ];
31 nativeCheckInputs = [ pytestCheckHook ];
33 pythonImportsCheck = [ "spython" ];
37 "test_has_no_instances"
39 "test_check_get_singularity_version"
43 # Tests are looking for something that doesn't exist
44 "spython/tests/test_client.py"
48 description = "Streamlined singularity python client (spython) for singularity";
49 homepage = "https://github.com/singularityhub/singularity-cli";
50 changelog = "https://github.com/singularityhub/singularity-cli/blob/${version}/CHANGELOG.md";
51 license = licenses.mpl20;
52 maintainers = with maintainers; [ fab ];
53 mainProgram = "spython";