nixpkgs/pkgs/applications/networking/instant-messengers/poezio/default.nix
Fabian Affolter 53065b9d8f poezio: modernize
- use GitLab source
- add pythonImportsCheck
- switch to python3.pkgs.buildPythonApplication
2023-05-16 11:16:25 +02:00

53 lines
969 B
Nix

{ lib
, fetchFromGitLab
, pkg-config
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "poezio";
version = "0.13.1";
format = "setuptools";
src = fetchFromGitLab {
domain = "lab.louiz.org";
owner = pname;
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-3pUegEfhQxEv/7Htw6b2BN1lXtDockyANmi1xW4wPhA=";
};
nativeBuildInputs = [
pkg-config
];
propagatedBuildInputs = with python3.pkgs; [
aiodns
cffi
mpd2
potr
pyasn1
pyasn1-modules
pycares
pyinotify
slixmpp
typing-extensions
];
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 = with maintainers; [ lsix ];
};
}