Merge pull request #232194 from fabaff/poezio-fix

poezio: modernize
This commit is contained in:
Fabian Affolter 2023-05-17 01:53:36 +02:00 committed by GitHub
commit eb38da8fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 25 deletions

View File

@ -1,59 +1,52 @@
{ lib
, aiodns
, buildPythonApplication
, cffi
, fetchFromGitHub
, mpd2
, fetchFromGitLab
, pkg-config
, potr
, pyasn1
, pyasn1-modules
, pyinotify
, pytestCheckHook
, pythonOlder
, setuptools
, slixmpp
, typing-extensions
, python3
}:
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "poezio";
version = "0.13.1";
disabled = pythonOlder "3.4";
format = "setuptools";
src = fetchFromGitHub {
src = fetchFromGitLab {
domain = "lab.louiz.org";
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "041y61pcbdb86s04qwp8s1g6bp84yskc7vdizwpi2hz18y01x5fy";
rev = "refs/tags/v${version}";
sha256 = "sha256-3pUegEfhQxEv/7Htw6b2BN1lXtDockyANmi1xW4wPhA=";
};
nativeBuildInputs = [
pkg-config
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3.pkgs; [
aiodns
cffi
mpd2
potr
pyasn1
pyasn1-modules
pycares
pyinotify
setuptools
slixmpp
] ++ lib.optionals (pythonOlder "3.7") [
typing-extensions
];
nativeCheckInputs = [
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [
"poezio"
];
meta = with lib; {
description = "Free console XMPP client";
homepage = "https://poez.io";
changelog = "https://lab.louiz.org/poezio/poezio/-/blob/v${version}/CHANGELOG";
license = licenses.zlib;
maintainers = [ maintainers.lsix ];
maintainers = with maintainers; [ lsix ];
};
}

View File

@ -33424,7 +33424,7 @@ with pkgs;
polar-bookshelf1 = callPackage ../applications/misc/polar-bookshelf1 { };
poezio = python3Packages.poezio;
poezio = callPackage ../applications/networking/instant-messengers/poezio { };
pommed_light = callPackage ../os-specific/linux/pommed-light { };