48 lines
840 B
Nix
48 lines
840 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
canonicaljson,
|
|
fetchPypi,
|
|
setuptools,
|
|
pynacl,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
unpaddedbase64,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "signedjson";
|
|
version = "1.1.4";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "signedjson";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-zZHFavU/Fp7wMsYunEoyktwViGaTMxjQWS40Yts9ZJI=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
canonicaljson
|
|
unpaddedbase64
|
|
pynacl
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "signedjson" ];
|
|
|
|
meta = {
|
|
description = "Sign JSON with Ed25519 signatures";
|
|
homepage = "https://github.com/matrix-org/python-signedjson";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
})
|