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