mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
37 lines
759 B
Nix
37 lines
759 B
Nix
{
|
|
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 = [ ];
|
|
};
|
|
}
|