canonicaljson: separating from pythonPackages

This commit is contained in:
Florian Jacob
2018-04-21 18:46:44 +02:00
parent 3d974552f3
commit 63901546df
2 changed files with 24 additions and 14 deletions

View File

@@ -0,0 +1,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;
};
}