blob: 41853b4bb637d3403cb76664ff053252195c380a (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
voluptuous,
# tests
openapi-schema-validator,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "voluptuous-openapi";
version = "0.0.7";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "voluptuous-openapi";
tag = "v${version}";
hash = "sha256-shgLUO4dFuvVG8K3yuK8FUsohIb4zgh7h6nvNiaYws0=";
};
build-system = [ setuptools ];
dependencies = [ voluptuous ];
nativeCheckInputs = [
openapi-schema-validator
pytestCheckHook
];
pythonImportsCheck = [ "voluptuous_openapi" ];
meta = with lib; {
changelog = "https://github.com/home-assistant-libs/voluptuous-openapi/releases/tag/${src.tag}";
description = "Convert voluptuous schemas to OpenAPI Schema object";
homepage = "https://github.com/home-assistant-libs/voluptuous-openapi";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}
|