summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/opencontainers/default.nix
blob: 4f6c716066c29505c0b22b3b7605ac538a46f0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytestCheckHook,
  requests,
}:

buildPythonPackage rec {
  pname = "opencontainers";
  version = "0.0.15";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-o6QBJMxo7aVse0xauSTxi1UEW4RYrKlhH1v6g/fvrv4=";
  };

  postPatch = ''
    sed -i "/pytest-runner/d" setup.py
  '';

  optional-dependencies.reggie = [ requests ];

  pythonImportsCheck = [ "opencontainers" ];

  nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.reggie;

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Python module for oci specifications";
    homepage = "https://github.com/vsoch/oci-python";
    license = lib.licenses.mpl20;
    maintainers = [ ];
  };
}