canonicaljson: separating from pythonPackages
This commit is contained in:
parent
3d974552f3
commit
63901546df
23
pkgs/development/python-modules/canonicaljson/default.nix
Normal file
23
pkgs/development/python-modules/canonicaljson/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -16638,20 +16638,7 @@ EOF
|
|||
};
|
||||
};
|
||||
|
||||
canonicaljson = buildPythonPackage rec {
|
||||
name = "canonicaljson-${version}";
|
||||
version = "1.1.3";
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/matrix-org/python-canonicaljson.git";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "11j0xmbw2hbl789pyfga02w8aa3s8rkc8pk6501r1sfy8xljd8zy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [
|
||||
frozendict simplejson six
|
||||
];
|
||||
};
|
||||
canonicaljson = callPackage ../development/python-modules/canonicaljson { };
|
||||
|
||||
daemonize = buildPythonPackage rec {
|
||||
name = "daemonize-${version}";
|
||||
|
|
Loading…
Reference in a new issue