depot/third_party/nixpkgs/pkgs/development/python-modules/canonicaljson/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

24 lines
575 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, frozendict, simplejson, six, isPy27
}:
buildPythonPackage rec {
pname = "canonicaljson";
version = "1.4.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "899b7604f5a6a8a92109115d9250142cdf0b1dfdcb62cdb21d8fb5bf37780631";
};
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;
};
}