1{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, voluptuous, pytest }: 2 3buildPythonPackage rec { 4 pname = "voluptuous-serialize"; 5 version = "2018-03-10"; 6 7 disabled = !isPy3k; 8 9 # no tests in PyPI tarball 10 src = fetchFromGitHub { 11 owner = "balloob"; 12 repo = pname; 13 rev = "567f0d96f928cf6c30c9f1b8bdee729e651aac82"; 14 sha256 = "0b16f1bxlqyvi1hy8wmzp2k0rzqcycmdhs8zwsyx0swnvkgwnv50"; 15 }; 16 17 propagatedBuildInputs = [ 18 voluptuous 19 ]; 20 21 checkInputs = [ 22 pytest 23 ]; 24 25 checkPhase = '' 26 py.test 27 ''; 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}