mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
poezio: fix build
This commit is contained in:
parent
f8beeb6f59
commit
acc178b2df
@ -1,30 +1,59 @@
|
||||
{ lib, buildPythonApplication, fetchFromGitHub, pythonOlder
|
||||
, pytest, aiodns, slixmpp, pyinotify, potr, mpd2, cffi, pkg-config, setuptools }:
|
||||
{ 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";
|
||||
pname = "poezio";
|
||||
version = "0.13.1";
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "041y61pcbdb86s04qwp8s1g6bp84yskc7vdizwpi2hz18y01x5fy";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ aiodns slixmpp pyinotify potr mpd2 cffi setuptools ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "041y61pcbdb86s04qwp8s1g6bp84yskc7vdizwpi2hz18y01x5fy";
|
||||
};
|
||||
propagatedBuildInputs = [
|
||||
aiodns
|
||||
cffi
|
||||
mpd2
|
||||
potr
|
||||
pyasn1
|
||||
pyasn1-modules
|
||||
pyinotify
|
||||
setuptools
|
||||
slixmpp
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Free console XMPP client";
|
||||
homepage = "https://poez.io";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.lsix ];
|
||||
};
|
||||
}
|
||||
meta = with lib; {
|
||||
description = "Free console XMPP client";
|
||||
homepage = "https://poez.io";
|
||||
license = licenses.zlib;
|
||||
maintainers = [ maintainers.lsix ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user