about summary refs log tree commit diff
path: root/pkgs/development/python-modules/canonicaljson/default.nix
blob: b7fd01472aabce562f52fabf00265895d6f0295e (plain) (blame)
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.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1q50zk9a0r7kd56rdf9cgyxxj7vy54j96sgh8vc8jhmsvdv8dzh6";
  };

  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;
  };
}