depot/third_party/nixpkgs/pkgs/development/python-modules/pygpgme/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

35 lines
821 B
Nix

{
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 = with lib; {
homepage = "https://launchpad.net/pygpgme";
description = "Python wrapper for the GPGME library";
license = licenses.lgpl21;
maintainers = [ ];
};
}