summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pygpgme/default.nix
blob: 0b3e07ee068c4370858d7add8c9b8fd9df32a970 (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
{
  lib,
  buildPythonPackage,
  fetchurl,
  gpgme,
  isPyPy,
  pythonAtLeast,
}:

buildPythonPackage rec {
  version = "0.3";
  format = "setuptools";
  pname = "pygpgme";

  # Native code doesn't compile against the C API of Python 3.11:
  # https://bugs.launchpad.net/pygpgme/+bug/1996122
  disabled = isPyPy || pythonAtLeast "3.11";

  src = fetchurl {
    url = "https://launchpad.net/pygpgme/trunk/${version}/+download/${pname}-${version}.tar.gz";
    sha256 = "5fd887c407015296a8fd3f4b867fe0fcca3179de97ccde90449853a3dfb802e1";
  };

  # error: invalid command 'test'
  doCheck = false;

  propagatedBuildInputs = [ gpgme ];

  meta = {
    homepage = "https://launchpad.net/pygpgme";
    description = "Python wrapper for the GPGME library";
    license = lib.licenses.lgpl21;
    maintainers = [ ];
  };
}