depot/third_party/nixpkgs/pkgs/development/python-modules/voluptuous-serialize/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

35 lines
735 B
Nix

{ stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }:
buildPythonPackage rec {
pname = "voluptuous-serialize";
version = "2.4.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1r7avibzf009h5rlh7mbh1fc01daligvi2axjn5qxh810g5igfn6";
};
propagatedBuildInputs = [
voluptuous
];
checkInputs = [
pytest
];
checkPhase = ''
py.test
'';
# no tests in PyPI tarball
doCheck = false;
meta = with stdenv.lib; {
homepage = "https://github.com/balloob/voluptuous-serialize";
license = licenses.asl20;
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
maintainers = with maintainers; [ etu ];
};
}