1{ lib
2, buildPythonPackage
3, fetchurl
4, gpgme
5, isPyPy
6, pythonAtLeast
7}:
8
9buildPythonPackage rec {
10 version = "0.3";
11 pname = "pygpgme";
12
13 # Native code doesn't compile against the C API of Python 3.11:
14 # https://bugs.launchpad.net/pygpgme/+bug/1996122
15 disabled = isPyPy || pythonAtLeast "3.11";
16
17 src = fetchurl {
18 url = "https://launchpad.net/pygpgme/trunk/${version}/+download/${pname}-${version}.tar.gz";
19 sha256 = "5fd887c407015296a8fd3f4b867fe0fcca3179de97ccde90449853a3dfb802e1";
20 };
21
22 # error: invalid command 'test'
23 doCheck = false;
24
25 propagatedBuildInputs = [ gpgme ];
26
27 meta = with lib; {
28 homepage = "https://launchpad.net/pygpgme";
29 description = "A Python wrapper for the GPGME library";
30 license = licenses.lgpl21;
31 maintainers = with maintainers; [ ];
32 };
33}