depot/third_party/nixpkgs/pkgs/development/python-modules/voluptuous-openapi/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

43 lines
954 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
voluptuous,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "voluptuous-openapi";
version = "0.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "voluptuous-openapi";
rev = "v${version}";
hash = "sha256-QZi2uxFrYMSJVKIHTRBlGAM1sCD6oIzsZNQH7zkXL8w=";
};
build-system = [ setuptools ];
dependencies = [ voluptuous ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "voluptuous_openapi" ];
meta = with lib; {
changelog = "https://github.com/home-assistant-libs/voluptuous-openapi/releases/tag/${src.rev}";
description = "Convert voluptuous schemas to OpenAPI Schema object";
homepage = "https://github.com/home-assistant-libs/voluptuous-openapi";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}