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