1{ stdenv, buildPythonPackage, fetchPypi
2, frozendict, simplejson, six, isPy27
3}:
4
5buildPythonPackage rec {
6 pname = "canonicaljson";
7 version = "1.4.0";
8 disabled = isPy27;
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "899b7604f5a6a8a92109115d9250142cdf0b1dfdcb62cdb21d8fb5bf37780631";
13 };
14
15 propagatedBuildInputs = [
16 frozendict simplejson six
17 ];
18
19 meta = with stdenv.lib; {
20 homepage = "https://github.com/matrix-org/python-canonicaljson";
21 description = "Encodes objects and arrays as RFC 7159 JSON.";
22 license = licenses.asl20;
23 };
24}