depot/third_party/nixpkgs/pkgs/development/python-modules/openapi3/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
834 B
Nix

{
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 = "Python3 OpenAPI 3 Spec Parser";
homepage = "https://github.com/Dorthu/openapi3";
license = licenses.bsd3;
maintainers = with maintainers; [ techknowlogick ];
};
}