blob: 3e88db6c915bca83e3a007c357fbf9d5c5f3c789 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, buildPythonPackage
, fetchPypi
, frozendict
, pytestCheckHook
, pythonOlder
, setuptools
, simplejson
}:
buildPythonPackage rec {
pname = "canonicaljson";
version = "1.6.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-bAmyEZUR8w6xEmz82XOhCCTiDxz9JQOc3j0SGN2cjY8=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
simplejson
];
passthru.optional-dependencies = {
frozendict = [
frozendict
];
};
checkInputs = [
pytestCheckHook
];
disabledTests = [
"test_frozen_dict"
];
pythonImportsCheck = [
"canonicaljson"
];
meta = with lib; {
description = "Encodes objects and arrays as RFC 7159 JSON";
homepage = "https://github.com/matrix-org/python-canonicaljson";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|