summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sshpubkeys/default.nix
blob: 28480e772d2f85bf66366f249616506d791989c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  cryptography,
}:

buildPythonPackage rec {
  version = "3.3.1";
  pname = "sshpubkeys";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ojarva";
    repo = "python-sshpubkeys";
    # https://github.com/ojarva/python-sshpubkeys/issues/94
    tag = "v3.2.0";
    hash = "sha256-2OJatnQuCt9XQ797F5nEmgEZl5/tu9lrAry5yBGW61g=";
  };

  build-system = [ setuptools ];

  dependencies = [
    cryptography
  ];

  pythonImportsCheck = [ "sshpubkeys" ];

  meta = {
    changelog = "https://github.com/ojarva/python-sshpubkeys/releases/tag/${src.tag}";
    description = "OpenSSH Public Key Parser for Python";
    homepage = "https://github.com/ojarva/python-sshpubkeys";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}