depot/third_party/nixpkgs/pkgs/development/python-modules/opencontainers/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

42 lines
817 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
'';
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 ];
};
}