Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }: 2 3buildPythonPackage rec { 4 pname = "voluptuous-serialize"; 5 version = "2.4.0"; 6 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "1r7avibzf009h5rlh7mbh1fc01daligvi2axjn5qxh810g5igfn6"; 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}