2021-08-31 17:15:37 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, frozendict
|
|
|
|
, pytestCheckHook
|
2021-10-21 19:40:49 +01:00
|
|
|
, pythonOlder
|
|
|
|
, simplejson
|
2018-04-21 17:46:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "canonicaljson";
|
2021-10-21 19:40:49 +01:00
|
|
|
version = "1.5.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-04-21 17:46:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-21 19:40:49 +01:00
|
|
|
sha256 = "sha256-Xr3c10xbBm7mjsylZGUzjpsTgEZ+CpBvR5dpfJ+zgeI=";
|
2018-04-21 17:46:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-08-31 17:15:37 +01:00
|
|
|
frozendict
|
|
|
|
simplejson
|
|
|
|
];
|
|
|
|
|
2021-10-21 19:40:49 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-08-31 17:15:37 +01:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_frozen_dict"
|
2018-04-21 17:46:44 +01:00
|
|
|
];
|
|
|
|
|
2021-10-21 19:40:49 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"canonicaljson"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-10-21 19:40:49 +01:00
|
|
|
description = "Encodes objects and arrays as RFC 7159 JSON";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/matrix-org/python-canonicaljson";
|
2018-04-21 17:46:44 +01:00
|
|
|
license = licenses.asl20;
|
2021-10-21 19:40:49 +01:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-04-21 17:46:44 +01:00
|
|
|
};
|
|
|
|
}
|