1{ stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }:
2
3buildPythonPackage rec {
4 pname = "voluptuous-serialize";
5 version = "2.3.0";
6
7 disabled = !isPy3k;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "1xcjyp1190z6a226fg0clvhf43gjsbyn60amblsg7w7cw86d033l";
12 };
13
14 propagatedBuildInputs = [
15 voluptuous
16 ];
17
18 checkInputs = [
19 pytest
20 ];
21
22 checkPhase = ''
23 py.test
24 '';
25
26 # no tests in PyPI tarball
27 doCheck = false;
28
29 meta = with stdenv.lib; {
30 homepage = https://github.com/balloob/voluptuous-serialize;
31 license = licenses.asl20;
32 description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
33 maintainers = with maintainers; [ etu ];
34 };
35}