2018-04-21 17:46:44 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2020-08-17 19:39:37 +01:00
|
|
|
, frozendict, simplejson, six, isPy27
|
2018-04-21 17:46:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "canonicaljson";
|
2020-08-16 18:30:54 +01:00
|
|
|
version = "1.3.0";
|
2020-08-17 19:39:37 +01:00
|
|
|
disabled = isPy27;
|
2018-04-21 17:46:44 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:30:54 +01:00
|
|
|
sha256 = "b4763db06a2e8553293c5edaa4bda05605c3307179a7ddfb30273a24ac384b6c";
|
2018-04-21 17:46:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
frozendict simplejson six
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/matrix-org/python-canonicaljson";
|
2018-04-21 17:46:44 +01:00
|
|
|
description = "Encodes objects and arrays as RFC 7159 JSON.";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|