depot/third_party/nixpkgs/pkgs/development/python-modules/voluptuous-serialize/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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 ];
};
}