diff --git a/pkgs/development/python-modules/py-serializable/default.nix b/pkgs/development/python-modules/py-serializable/default.nix new file mode 100644 index 000000000000..c27296e851c6 --- /dev/null +++ b/pkgs/development/python-modules/py-serializable/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f24f353537b6..4e7f2e055eed 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };