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