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