mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / ed25519 / default.nix
blob1f10b9be005d88a673bfc8660d15874a9cf4e460
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   setuptools,
7   versioneer,
8 }:
10 buildPythonPackage rec {
11   pname = "ed25519";
12   version = "1.5";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "warner";
19     repo = "python-ed25519";
20     rev = "refs/tags/${version}";
21     hash = "sha256-AwnhB5UGycQliNndbqd0JlI4vKSehCSy0qHv2EiB+jA=";
22   };
24   postPatch = ''
25     rm versioneer.py
26   '';
28   build-system = [
29     setuptools
30     versioneer
31   ];
33   pythonImportsCheck = [ "ed25519" ];
35   meta = with lib; {
36     description = "Ed25519 public-key signatures";
37     mainProgram = "edsig";
38     homepage = "https://github.com/warner/python-ed25519";
39     changelog = "https://github.com/warner/python-ed25519/blob/${version}/NEWS";
40     license = licenses.mit;
41     maintainers = with maintainers; [ np ];
42   };