1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 requests, 7}: 8 9buildPythonPackage rec { 10 pname = "opencontainers"; 11 version = "0.0.15"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-o6QBJMxo7aVse0xauSTxi1UEW4RYrKlhH1v6g/fvrv4="; 17 }; 18 19 postPatch = '' 20 sed -i "/pytest-runner/d" setup.py 21 ''; 22 23 optional-dependencies.reggie = [ requests ]; 24 25 pythonImportsCheck = [ "opencontainers" ]; 26 27 nativeCheckInputs = [ pytestCheckHook ] ++ 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 = [ ]; 36 }; 37}