Unverified Commit 1f293528 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python310Packages.opencontainers: init at 0.0.14

Python implementation of Open Containers Initiative (OCI) specifications
parent 3eb87f35
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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;