nixpkgs/pkgs/development/python-modules/py-serializable/default.nix
2023-03-21 21:34:38 +01:00

52 lines
1,009 B
Nix

{ 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 ];
};
}