python311Packages.openapi3 init at 1.8.2

This commit is contained in:
techknowlogick 2023-11-03 23:14:27 -04:00
parent 0f3bf1c226
commit 10add799d8
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, requests
, pyyaml
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "openapi3";
version = "1.8.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-ohpJBXPYnKaa2ny+WFrbL8pJZCV/bzod9THxKBVFXSw=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
requests
pyyaml
];
nativeCheckinputs = [
pytestCheckHook
];
pythonImportsCheck = [
"openapi3"
];
meta = with lib; {
changelog = "https://github.com/Dorthu/openapi3/releases/tag/${version}";
description = "A Python3 OpenAPI 3 Spec Parser";
homepage = "https://github.com/Dorthu/openapi3";
license = licenses.bsd3;
maintainers = with maintainers; [ techknowlogick ];
};
}

View file

@ -8421,6 +8421,8 @@ self: super: with self; {
openapi-spec-validator = callPackage ../development/python-modules/openapi-spec-validator { };
openapi3 = callPackage ../development/python-modules/openapi3 { };
openbabel-bindings = callPackage ../development/python-modules/openbabel-bindings {
openbabel = callPackage ../development/libraries/openbabel { inherit (self) python; };
};