2018-10-29 16:55:38 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchgit
|
|
|
|
, canonicaljson
|
|
|
|
, unpaddedbase64
|
|
|
|
, pynacl
|
2020-02-18 14:26:12 +00:00
|
|
|
, typing-extensions
|
2018-10-29 16:55:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "signedjson";
|
2020-02-18 14:26:12 +00:00
|
|
|
version = "1.1.0";
|
2018-10-29 16:55:38 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/matrix-org/python-signedjson.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
2020-02-18 14:26:12 +00:00
|
|
|
sha256 = "18s388hm3babnvakbbgfqk0jzq25nnznvhygywd3azp9b4yzmd5c";
|
2018-10-29 16:55:38 +00:00
|
|
|
};
|
|
|
|
|
2020-02-18 14:26:12 +00:00
|
|
|
propagatedBuildInputs = [ canonicaljson unpaddedbase64 pynacl typing-extensions ];
|
2018-10-29 16:55:38 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.org/project/signedjson/";
|
2018-10-29 16:55:38 +00:00
|
|
|
description = "Sign JSON with Ed25519 signatures";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|