depot/third_party/nixpkgs/pkgs/development/python-modules/opencontainers/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

37 lines
765 B
Nix

{
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
'';
optional-dependencies.reggie = [ requests ];
pythonImportsCheck = [ "opencontainers" ];
nativeCheckInputs = [ pytestCheckHook ] ++ 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 = [ ];
};
}