aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/canonicaljson/default.nix
blob: 24cccc3aa770abbdb98b123dfe40f2d39194483a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, buildPythonPackage, fetchPypi
, frozendict, simplejson, six
}:

buildPythonPackage rec {
  pname = "canonicaljson";
  version = "1.1.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "45bce530ff5fd0ca93703f71bfb66de740a894a3b5dd6122398c6d8f18539725";
  };

  propagatedBuildInputs = [
    frozendict simplejson six
  ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/matrix-org/python-canonicaljson";
    description = "Encodes objects and arrays as RFC 7159 JSON.";
    license = licenses.asl20;
  };
}