python310Packages.opencontainers: init at 0.0.14

Python implementation of Open Containers Initiative (OCI) specifications
This commit is contained in:
Martin Weinelt 2023-03-24 18:16:54 +00:00
parent 3eb87f358b
commit 1f293528cc
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 44 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -6853,6 +6853,8 @@ self: super: with self; {
opencensus-context = callPackage ../development/python-modules/opencensus-context { };
opencontainers = callPackage ../development/python-modules/opencontainers { };
opencv3 = toPythonModule (pkgs.opencv3.override {
enablePython = true;
pythonPackages = self;