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.12.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-TnO8mkRJfdTO1sA26bqh46EMes2TpLXJwpDdrvPPC9g=";
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 meta = with lib; {
45 description = "Pythonic library to aid with serialisation and deserialisation to/from JSON and XML";
46 homepage = "https://github.com/madpah/serializable";
47 changelog = "https://github.com/madpah/serializable/blob/${version}/CHANGELOG.md";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ fab ];
50 };
51}