2018-10-17 15:02:38 +01:00
|
|
|
{ stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }:
|
2018-05-31 20:10:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "voluptuous-serialize";
|
2019-02-14 07:37:33 +00:00
|
|
|
version = "2.1.0";
|
2018-05-31 20:10:41 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-10-17 15:02:38 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:33 +00:00
|
|
|
sha256 = "d30fef4f1aba251414ec0b315df81a06da7bf35201dcfb1f6db5253d738a154f";
|
2018-05-31 20:10:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-10-17 15:02:38 +01:00
|
|
|
# no tests in PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-05-31 20:10:41 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|