1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 requests, 7}: 8 9buildPythonPackage rec { 10 pname = "opencontainers"; 11 version = "0.0.14"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-/eO4CZtWtclWQV34kz4iJ+GRToBaJ3uETy+eUjQXOPI="; 17 }; 18 19 postPatch = '' 20 sed -i "/pytest-runner/d" setup.py 21 ''; 22 23 passthru.optional-dependencies.reggie = [ requests ]; 24 25 pythonImportsCheck = [ "opencontainers" ]; 26 27 nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.reggie; 28 29 __darwinAllowLocalNetworking = true; 30 31 meta = with lib; { 32 description = "Python module for oci specifications"; 33 homepage = "https://github.com/vsoch/oci-python"; 34 license = licenses.mpl20; 35 maintainers = with maintainers; [ ]; 36 }; 37}