2021-01-17 08:56:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, pytestCheckHook
|
|
|
|
, voluptuous
|
|
|
|
}:
|
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;
|
|
|
|
|
2021-01-17 08:56:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1km2y1xaagkdvsy3bmi1sc040x5yyfdw6llmwdv9z8nz67m9v1ya";
|
2018-05-31 20:10:41 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 08:56:40 +00:00
|
|
|
propagatedBuildInputs = [ voluptuous ];
|
2018-05-31 20:10:41 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-17 08:56:40 +00:00
|
|
|
pytestCheckHook
|
|
|
|
voluptuous
|
2018-05-31 20:10:41 +01:00
|
|
|
];
|
|
|
|
|
2021-01-17 08:56:40 +00:00
|
|
|
pythonImportsCheck = [ "voluptuous_serialize" ];
|
2018-10-17 15:02:38 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-17 08:56:40 +00:00
|
|
|
homepage = "https://github.com/home-assistant-libs/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 ];
|
|
|
|
};
|
|
|
|
}
|