2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, frozendict
|
|
|
|
, pytestCheckHook
|
2021-10-28 06:52:43 +00:00
|
|
|
, pythonOlder
|
|
|
|
, simplejson
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "canonicaljson";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "1.6.0";
|
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-10 19:12:11 +00:00
|
|
|
hash = "sha256-hznV/ZGspygdQlZgrmWvdmOAjIF3d4ll9n6QsWorJCc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
frozendict
|
|
|
|
simplejson
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_frozen_dict"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"canonicaljson"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-28 06:52:43 +00:00
|
|
|
description = "Encodes objects and arrays as RFC 7159 JSON";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/matrix-org/python-canonicaljson";
|
|
|
|
license = licenses.asl20;
|
2021-10-28 06:52:43 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|