2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-08-17 11:39:37 -07:00
|
|
|
, frozendict, simplejson, six, isPy27
|
2018-04-21 09:46:44 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "canonicaljson";
|
2020-09-29 15:34:52 -07:00
|
|
|
version = "1.4.0";
|
2020-08-17 11:39:37 -07:00
|
|
|
disabled = isPy27;
|
2018-04-21 09:46:44 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-29 15:34:52 -07:00
|
|
|
sha256 = "899b7604f5a6a8a92109115d9250142cdf0b1dfdcb62cdb21d8fb5bf37780631";
|
2018-04-21 09:46:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
frozendict simplejson six
|
|
|
|
];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/matrix-org/python-canonicaljson";
|
2018-04-21 09:46:44 -07:00
|
|
|
description = "Encodes objects and arrays as RFC 7159 JSON.";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|