nixos/doh-server: init
[NixPkgs.git] / pkgs / development / python-modules / py-serializable / default.nix
blob6cbf0a63200ddc1c43798b85f34c4c345212d98b
2   lib,
3   buildPythonPackage,
4   defusedxml,
5   fetchFromGitHub,
6   lxml,
7   poetry-core,
8   pytestCheckHook,
9   pythonOlder,
10   xmldiff,
13 buildPythonPackage rec {
14   pname = "py-serializable";
15   version = "1.1.2";
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "madpah";
22     repo = "serializable";
23     tag = "v${version}";
24     hash = "sha256-2A+QjokZ7gtgstclZ7PFSPymYjQYKsLVXy9xbFOfxLo=";
25   };
27   build-system = [ poetry-core ];
29   pythonRelaxDeps = [ "defusedxml" ];
31   dependencies = [ defusedxml ];
33   nativeCheckInputs = [
34     lxml
35     pytestCheckHook
36     xmldiff
37   ];
39   pythonImportsCheck = [ "serializable" ];
41   disabledTests = [
42     # AssertionError: '<ns0[155 chars]itle>The Phoenix
43     "test_serializable_no_defaultNS"
44     "test_serializable_with_defaultNS"
45   ];
47   meta = with lib; {
48     description = "Library to aid with serialisation and deserialisation to/from JSON and XML";
49     homepage = "https://github.com/madpah/serializable";
50     changelog = "https://github.com/madpah/serializable/blob/v${version}/CHANGELOG.md";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ fab ];
53   };