2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lxml,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
xmldiff,
|
2023-03-24 00:07:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-serializable";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.1";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2023-03-24 00:07:29 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "madpah";
|
|
|
|
repo = "serializable";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-8ciRzanrcb7DMAcWzIxRkgeCRGw+Ji8Epnw67cylGeQ=";
|
2023-03-24 00:07:29 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2023-03-24 00:07:29 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonRelaxDeps = [ "defusedxml" ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [ defusedxml ];
|
2023-03-24 00:07:29 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
lxml
|
|
|
|
pytestCheckHook
|
|
|
|
xmldiff
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "serializable" ];
|
2023-03-24 00:07:29 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: '<ns0[155 chars]itle>The Phoenix
|
|
|
|
"test_serializable_no_defaultNS"
|
|
|
|
"test_serializable_with_defaultNS"
|
|
|
|
];
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Library to aid with serialisation and deserialisation to/from JSON and XML";
|
2023-03-24 00:07:29 +00:00
|
|
|
homepage = "https://github.com/madpah/serializable";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/madpah/serializable/blob/v${version}/CHANGELOG.md";
|
2023-03-24 00:07:29 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|