mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / spython / default.nix
blobaeddaa35e788556399564b9c1e1b40609fb30c70
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "spython";
12   version = "0.3.14";
13   pyproject = true;
15   disabled = pythonOlder "3.9";
17   src = fetchFromGitHub {
18     owner = "singularityhub";
19     repo = "singularity-cli";
20     rev = "refs/tags/${version}";
21     hash = "sha256-PNMzqnKb691wcd8aGSleqHOcsUrahl8e0r5s5ek5GmQ=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace-fail '"pytest-runner"' ""
27   '';
29   build-system = [ setuptools ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "spython" ];
35   disabledTests = [
36     # Assertion errors
37     "test_has_no_instances"
38     "test_check_install"
39     "test_check_get_singularity_version"
40   ];
42   disabledTestPaths = [
43     # Tests are looking for something that doesn't exist
44     "spython/tests/test_client.py"
45   ];
47   meta = with lib; {
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";
54   };