diff --git a/pkgs/applications/networking/instant-messengers/poezio/default.nix b/pkgs/applications/networking/instant-messengers/poezio/default.nix new file mode 100644 index 000000000000..b5fa1ccc2f41 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/poezio/default.nix @@ -0,0 +1,28 @@ +{ lib, buildPythonApplication, fetchurl, pythonOlder +, pytest, aiodns, slixmpp, pyinotify, potr, mpd2, cffi, pkgconfig }: +buildPythonApplication rec { + name = "poezio-${version}"; + version = "0.12"; + + disabled = pythonOlder "3.4"; + + buildInputs = [ pytest ]; + propagatedBuildInputs = [ aiodns slixmpp pyinotify potr mpd2 cffi ]; + nativeBuildInputs = [ pkgconfig ]; + + src = fetchurl { + url = "http://dev.louiz.org/attachments/download/129/${name}.tar.gz"; + sha256 = "11n9x82xyjwbqk28lsfnvqwn8qc9flv6w2c64camh6j3148ykpvz"; + }; + + checkPhase = '' + py.test + ''; + + meta = with lib; { + description = "Free console XMPP client"; + homepage = https://poez.io; + license = licenses.mit; + maintainers = [ maintainers.lsix ]; + }; + } diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aa7c6abfb50e..ac9a00550b0d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16005,32 +16005,7 @@ EOF }; }; - poezio = buildPythonApplication rec { - name = "poezio-${version}"; - version = "0.12"; - - disabled = pythonOlder "3.4"; - - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self ; [ aiodns slixmpp pyinotify potr mpd2 cffi ]; - nativeBuildInputs = with pkgs; [ pkgconfig ]; - - src = pkgs.fetchurl { - url = "http://dev.louiz.org/attachments/download/129/${name}.tar.gz"; - sha256 = "11n9x82xyjwbqk28lsfnvqwn8qc9flv6w2c64camh6j3148ykpvz"; - }; - - checkPhase = '' - py.test - ''; - - meta = { - description = "Free console XMPP client"; - homepage = https://poez.io; - license = licenses.mit; - maintainers = [ maintainers.lsix ]; - }; - }; + poezio = callPackage ../applications/networking/instant-messengers/poezio { }; potr = callPackage ../development/python-modules/potr {};