python.pkgs.txaio: fix build

This commit is contained in:
Robert Schütz 2018-04-06 15:21:42 +02:00 committed by Frederik Rietdijk
parent b1ef2e596f
commit 9440d4825c

View File

@ -1,7 +1,6 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, six, twisted }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "txaio";
version = "2.9.0";
@ -10,18 +9,12 @@ buildPythonPackage rec {
sha256 = "dfc3a7d04b4b484ae5ff241affab5bb01306b1e950dd6f54fd036cfca94345d0";
};
buildInputs = [ pytest mock ];
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ six twisted ];
patchPhase = ''
sed -i '152d' test/test_logging.py
'';
# test_chained_callback has been removed just post-2.7.1 because the functionality was decided against and the test
# breaks on python 3.6 https://github.com/crossbario/txaio/pull/104
checkPhase = ''
py.test -k "not (test_sdist or test_chained_callback)"
py.test -k "not test_sdist"
'';
meta = with stdenv.lib; {