2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 16:55:38 +00:00
|
|
|
, buildPythonPackage
|
2020-11-01 22:39:49 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-29 16:55:38 +00:00
|
|
|
, 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
|
|
|
|
2020-11-01 22:39:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matrix-org";
|
|
|
|
repo = "python-${pname}";
|
2018-10-29 16:55:38 +00:00
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|