2018-10-17 16:02:38 +02:00
|
|
|
{ stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }:
|
2018-05-31 21:10:41 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "voluptuous-serialize";
|
2019-10-08 17:50:53 +02:00
|
|
|
version = "2.3.0";
|
2018-05-31 21:10:41 +02:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-10-17 16:02:38 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-08 17:50:53 +02:00
|
|
|
sha256 = "1xcjyp1190z6a226fg0clvhf43gjsbyn60amblsg7w7cw86d033l";
|
2018-05-31 21:10:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-10-17 16:02:38 +02:00
|
|
|
# no tests in PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-05-31 21:10:41 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/balloob/voluptuous-serialize";
|
2018-05-31 21:10:41 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
|
|
|
|
maintainers = with maintainers; [ etu ];
|
|
|
|
};
|
|
|
|
}
|