2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, isPy3k, fetchPypi, voluptuous, pytest }:
|
2018-05-31 20:10:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "voluptuous-serialize";
|
2020-07-10 21:10:47 +01:00
|
|
|
version = "2.4.0";
|
2018-05-31 20:10:41 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-10-17 15:02:38 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-10 21:10:47 +01:00
|
|
|
sha256 = "1r7avibzf009h5rlh7mbh1fc01daligvi2axjn5qxh810g5igfn6";
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/balloob/voluptuous-serialize";
|
2018-05-31 20:10:41 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
|
|
|
|
maintainers = with maintainers; [ etu ];
|
|
|
|
};
|
|
|
|
}
|