Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / py-serializable / default.nix
blob028d61f745a28e07f7e298ad28d93cc90237c293
1 { lib
2 , buildPythonPackage
3 , defusedxml
4 , fetchFromGitHub
5 , lxml
6 , poetry-core
7 , pytestCheckHook
8 , pythonOlder
9 , xmldiff
12 buildPythonPackage rec {
13   pname = "py-serializable";
14   version = "0.15.0";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "madpah";
21     repo = "serializable";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-U01XRT6XS0Uxpk+2pYOGAkZiZ5kogMBtcuEU1OJpSMo=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     defusedxml
32   ];
34   nativeCheckInputs = [
35     lxml
36     pytestCheckHook
37     xmldiff
38   ];
40   pythonImportsCheck = [
41     "serializable"
42   ];
44   disabledTests = [
45     # AssertionError: '<ns0[155 chars]itle>The Phoenix
46     "test_serializable_no_defaultNS"
47     "test_serializable_with_defaultNS"
48   ];
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   };