fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
37 lines
956 B
Nix
37 lines
956 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
voluptuous,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "voluptuous-serialize";
|
|
version = "2.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = "voluptuous-serialize";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vvreXSQDkA3JkZpOKZqJgMRyObJX/cSR8r+A26h9fNE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ voluptuous ];
|
|
|
|
pythonImportsCheck = [ "voluptuous_serialize" ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
|
|
homepage = "https://github.com/home-assistant-libs/voluptuous-serialize";
|
|
changelog = "https://github.com/home-assistant-libs/voluptuous-serialize/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|