nixpkgs/pkgs/development/python-modules/yowsup/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

54 lines
1.0 KiB
Nix

{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, appdirs
, consonance
, protobuf
, python-axolotl
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "yowsup";
version = "3.3.0";
format = "setuptools";
# The Python 2.x support of this package is incompatible with `six==1.11`:
# https://github.com/tgalal/yowsup/issues/2416#issuecomment-365113486
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "tgalal";
repo = "yowsup";
rev = "v${version}";
sha256 = "1pz0r1gif15lhzdsam8gg3jm6zsskiv2yiwlhaif5rl7lv3p0v7q";
};
postPatch = ''
substituteInPlace setup.py \
--replace "argparse" "" \
--replace "==" ">=" \
'';
nativeCheckInputs = [
pytestCheckHook
];
propagatedBuildInputs = [
appdirs
consonance
protobuf
python-axolotl
six
];
meta = with lib; {
homepage = "https://github.com/tgalal/yowsup";
description = "The python WhatsApp library";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}