Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ed25519 / default.nix
blob80e405313cbc001277f4cd3217423a56c4ab83e1
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   pythonOlder,
7   setuptools,
8   versioneer,
9 }:
11 buildPythonPackage rec {
12   pname = "ed25519";
13   version = "1.5";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "warner";
20     repo = "python-ed25519";
21     rev = "refs/tags/${version}";
22     hash = "sha256-AwnhB5UGycQliNndbqd0JlI4vKSehCSy0qHv2EiB+jA=";
23   };
25   postPatch = ''
26     rm versioneer.py
27   '';
29   build-system = [
30     setuptools
31     versioneer
32   ];
34   pythonImportsCheck = [
35     "ed25519"
36   ];
38   meta = with lib; {
39     description = "Ed25519 public-key signatures";
40     mainProgram = "edsig";
41     homepage = "https://github.com/warner/python-ed25519";
42     changelog = "https://github.com/warner/python-ed25519/blob/${version}/NEWS";
43     license = licenses.mit;
44     maintainers = with maintainers; [ np ];
45   };