python3Packages.txaio: update check part
This commit is contained in:
parent
4cbb35eba8
commit
9677aba91e
@ -1,30 +1,55 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pytest, mock, six, twisted, isPy37, isPy27 }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, mock
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, six
|
||||||
|
, twisted
|
||||||
|
, zope_interface
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "txaio";
|
pname = "txaio";
|
||||||
version = "21.2.1";
|
version = "21.2.1";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "7d6f89745680233f1c4db9ddb748df5e88d2a7a37962be174c0fd04c8dba1dc8";
|
sha256 = "sha256-fW+JdFaAIz8cTbndt0jfXojSp6N5Yr4XTA/QTI26Hcg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
propagatedBuildInputs = [
|
||||||
|
six
|
||||||
|
twisted
|
||||||
|
zope_interface
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ six twisted ];
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
py.test -k "not test_sdist"
|
# No real value
|
||||||
'';
|
"test_sdist"
|
||||||
|
# Some tests seems out-dated and require additional data
|
||||||
|
"test_as_future"
|
||||||
|
"test_errback"
|
||||||
|
"test_create_future"
|
||||||
|
"test_callback"
|
||||||
|
"test_immediate_result"
|
||||||
|
"test_cancel"
|
||||||
|
];
|
||||||
|
|
||||||
# Needs some fixing
|
pythonImportsCheck = [ "txaio" ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Utilities to support code that runs unmodified on Twisted and asyncio.";
|
description = "Utilities to support code that runs unmodified on Twisted and asyncio";
|
||||||
homepage = "https://github.com/crossbario/txaio";
|
homepage = "https://github.com/crossbario/txaio";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ nand0p ];
|
maintainers = with maintainers; [ nand0p ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user