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