python310Packages.opencontainers: init at 0.0.14
Python implementation of Open Containers Initiative (OCI) specifications
This commit is contained in:
parent
3eb87f358b
commit
1f293528cc
2 changed files with 44 additions and 0 deletions
42
pkgs/development/python-modules/opencontainers/default.nix
Normal file
42
pkgs/development/python-modules/opencontainers/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue