Merge pull request #222418 from fabaff/py-serializable

python310Packages.py-serializable: init at 0.12.0
This commit is contained in:
Fabian Affolter 2023-03-22 21:22:30 +01:00 committed by GitHub
commit d7f258edb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, lxml
, poetry-core
, pytestCheckHook
, pythonOlder
, xmldiff
}:
buildPythonPackage rec {
pname = "py-serializable";
version = "0.12.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "madpah";
repo = "serializable";
rev = "refs/tags/v${version}";
hash = "sha256-TnO8mkRJfdTO1sA26bqh46EMes2TpLXJwpDdrvPPC9g=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
defusedxml
];
nativeCheckInputs = [
lxml
pytestCheckHook
xmldiff
];
pythonImportsCheck = [
"serializable"
];
meta = with lib; {
description = "Pythonic library to aid with serialisation and deserialisation to/from JSON and XML";
homepage = "https://github.com/madpah/serializable";
changelog = "https://github.com/madpah/serializable/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -7820,6 +7820,8 @@ self: super: with self; {
py-nightscout = callPackage ../development/python-modules/py-nightscout { };
py-serializable = callPackage ../development/python-modules/py-serializable { };
py-synologydsm-api = callPackage ../development/python-modules/py-synologydsm-api { };
py-sneakers = callPackage ../development/python-modules/py-sneakers { };