Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / oras / default.nix
blob16a8a9d9fd6b6b23a842278d1e7140f9d1220f6d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   jsonschema,
6   pytestCheckHook,
7   pythonOlder,
8   requests,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "oras";
14   version = "0.1.29";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "oras-project";
21     repo = "oras-py";
22     rev = "refs/tags/${version}";
23     hash = "sha256-ZV+J5zqRBRIddWdmLzzjpZi3M5E/HfkG8lWK9xzy5tw=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [
29     jsonschema
30     requests
31   ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   pythonImportsCheck = [ "oras" ];
37   disabledTests = [
38     # Test requires network access
39     "test_get_many_tags"
40   ];
42   meta = with lib; {
43     description = "ORAS Python SDK";
44     homepage = "https://github.com/oras-project/oras-py";
45     changelog = "https://github.com/oras-project/oras-py/blob/${version}/CHANGELOG.md";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ fab ];
48   };