bat: 0.24.0 -> 0.25.0 (#371913)
[NixPkgs.git] / pkgs / development / python-modules / signedjson / default.nix
bloba03238cf2e00cd380419c381ea2cba797cf5b5a6
2   lib,
3   buildPythonPackage,
4   canonicaljson,
5   fetchPypi,
6   importlib-metadata,
7   pynacl,
8   pytestCheckHook,
9   pythonOlder,
10   setuptools-scm,
11   typing-extensions,
12   unpaddedbase64,
15 buildPythonPackage rec {
16   pname = "signedjson";
17   version = "1.1.4";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-zZHFavU/Fp7wMsYunEoyktwViGaTMxjQWS40Yts9ZJI=";
25   };
27   nativeBuildInputs = [ setuptools-scm ];
29   propagatedBuildInputs =
30     [
31       canonicaljson
32       unpaddedbase64
33       pynacl
34     ]
35     ++ lib.optionals (pythonOlder "3.8") [
36       importlib-metadata
37       typing-extensions
38     ];
40   nativeCheckInputs = [ pytestCheckHook ];
42   pythonImportsCheck = [ "signedjson" ];
44   meta = with lib; {
45     description = "Sign JSON with Ed25519 signatures";
46     homepage = "https://github.com/matrix-org/python-signedjson";
47     license = licenses.asl20;
48     maintainers = [ ];
49   };