diff options
Diffstat (limited to 'pkgs/development/python-modules/opencontainers/default.nix')
-rw-r--r-- | pkgs/development/python-modules/opencontainers/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/opencontainers/default.nix b/pkgs/development/python-modules/opencontainers/default.nix new file mode 100644 index 0000000000000..5aa376cbc585d --- /dev/null +++ b/pkgs/development/python-modules/opencontainers/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, requests +}: + +buildPythonPackage rec { + pname = "opencontainers"; + version = "0.0.14"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-/eO4CZtWtclWQV34kz4iJ+GRToBaJ3uETy+eUjQXOPI="; + }; + + postPatch = '' + sed -i "/pytest-runner/d" setup.py + ''; + + passthru.optional-dependencies.reggie = [ + requests + ]; + + pythonImportsCheck = [ + "opencontainers" + ]; + + nativeCheckInputs = [ + pytestCheckHook + ] ++ passthru.optional-dependencies.reggie; + + __darwinAllowLocalNetworking = true; + + meta = with lib; { + description = "Python module for oci specifications"; + homepage = "https://github.com/vsoch/oci-python"; + license = licenses.mpl20; + maintainers = with maintainers; [ hexa ]; + }; +} |