1{ lib
2, buildPythonPackage
3, defusedxml
4, fetchFromGitHub
5, lxml
6, poetry-core
7, pytestCheckHook
8, pythonOlder
9, xmldiff
10}:
11
12buildPythonPackage rec {
13 pname = "py-serializable";
14 version = "0.15.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "madpah";
21 repo = "serializable";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-U01XRT6XS0Uxpk+2pYOGAkZiZ5kogMBtcuEU1OJpSMo=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 propagatedBuildInputs = [
31 defusedxml
32 ];
33
34 nativeCheckInputs = [
35 lxml
36 pytestCheckHook
37 xmldiff
38 ];
39
40 pythonImportsCheck = [
41 "serializable"
42 ];
43
44 disabledTests = [
45 # AssertionError: '<ns0[155 chars]itle>The Phoenix
46 "test_serializable_no_defaultNS"
47 "test_serializable_with_defaultNS"
48 ];
49
50 meta = with lib; {
51 description = "Pythonic library to aid with serialisation and deserialisation to/from JSON and XML";
52 homepage = "https://github.com/madpah/serializable";
53 changelog = "https://github.com/madpah/serializable/blob/${version}/CHANGELOG.md";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ fab ];
56 };
57}