blob: ca630098030a270cbc8711331e0a3f2be72dd9d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
lxml,
poetry-core,
pytestCheckHook,
xmldiff,
}:
buildPythonPackage rec {
pname = "py-serializable";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "madpah";
repo = "serializable";
tag = "v${version}";
hash = "sha256-nou1/80t9d2iKOdZZbcN4SI3dlvuC8T55KMCP/cDEEU=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "defusedxml" ];
dependencies = [ defusedxml ];
nativeCheckInputs = [
lxml
pytestCheckHook
xmldiff
];
pythonImportsCheck = [ "py_serializable" ];
disabledTests = [
# AssertionError: '<ns0[155 chars]itle>The Phoenix
"test_serializable_no_defaultNS"
"test_serializable_with_defaultNS"
];
meta = {
description = "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/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|