blob: dd7b8dd4312dd68df43d6d50da5b055896140a28 (
plain) (
blame)
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
52
|
{
lib,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
lxml,
poetry-core,
pytestCheckHook,
pythonOlder,
xmldiff,
}:
buildPythonPackage rec {
pname = "py-serializable";
version = "1.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "madpah";
repo = "serializable";
rev = "refs/tags/v${version}";
hash = "sha256-oVjb7/9RWvQd5L6xQBrspfblPzMaRvnZHDuojTuq+zE=";
};
build-system = [ poetry-core ];
dependencies = [ defusedxml ];
nativeCheckInputs = [
lxml
pytestCheckHook
xmldiff
];
pythonImportsCheck = [ "serializable" ];
disabledTests = [
# AssertionError: '<ns0[155 chars]itle>The Phoenix
"test_serializable_no_defaultNS"
"test_serializable_with_defaultNS"
];
meta = with lib; {
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/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|