1{ lib
2, buildPythonPackage
3, fetchPypi
4, frozendict
5, pytestCheckHook
6, pythonOlder
7, simplejson
8}:
9
10buildPythonPackage rec {
11 pname = "canonicaljson";
12 version = "1.5.0";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-Xr3c10xbBm7mjsylZGUzjpsTgEZ+CpBvR5dpfJ+zgeI=";
19 };
20
21 propagatedBuildInputs = [
22 frozendict
23 simplejson
24 ];
25
26 checkInputs = [
27 pytestCheckHook
28 ];
29
30 disabledTests = [
31 "test_frozen_dict"
32 ];
33
34 pythonImportsCheck = [
35 "canonicaljson"
36 ];
37
38 meta = with lib; {
39 description = "Encodes objects and arrays as RFC 7159 JSON";
40 homepage = "https://github.com/matrix-org/python-canonicaljson";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ fab ];
43 };
44}