nixpkgs/pkgs/applications/networking/instant-messengers/poezio/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

60 lines
956 B
Nix

{ lib
, aiodns
, buildPythonApplication
, cffi
, fetchFromGitHub
, mpd2
, pkg-config
, potr
, pyasn1
, pyasn1-modules
, pyinotify
, pytestCheckHook
, pythonOlder
, setuptools
, slixmpp
, typing-extensions
}:
buildPythonApplication rec {
pname = "poezio";
version = "0.13.1";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "041y61pcbdb86s04qwp8s1g6bp84yskc7vdizwpi2hz18y01x5fy";
};
nativeBuildInputs = [
pkg-config
];
propagatedBuildInputs = [
aiodns
cffi
mpd2
potr
pyasn1
pyasn1-modules
pyinotify
setuptools
slixmpp
] ++ lib.optionals (pythonOlder "3.7") [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Free console XMPP client";
homepage = "https://poez.io";
license = licenses.zlib;
maintainers = [ maintainers.lsix ];
};
}