1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy3k
5, pytestCheckHook
6, voluptuous
7}:
8
9buildPythonPackage rec {
10 pname = "voluptuous-serialize";
11 version = "2.5.0";
12
13 disabled = !isPy3k;
14
15 src = fetchFromGitHub {
16 owner = "home-assistant-libs";
17 repo = pname;
18 rev = version;
19 sha256 = "sha256-8rWMz8tBanxHdU/F4HhBxxz3ltqbdRoP4JED2dmZfTk=";
20 };
21
22 propagatedBuildInputs = [ voluptuous ];
23
24 checkInputs = [
25 pytestCheckHook
26 voluptuous
27 ];
28
29 pythonImportsCheck = [ "voluptuous_serialize" ];
30
31 meta = with lib; {
32 homepage = "https://github.com/home-assistant-libs/voluptuous-serialize";
33 license = licenses.asl20;
34 description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
35 maintainers = with maintainers; [ ];
36 };
37}