2021-03-16 19:39:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, six
|
|
|
|
, twisted
|
|
|
|
, zope_interface
|
|
|
|
}:
|
2017-05-30 00:44:27 +00:00
|
|
|
|
2017-04-26 12:25:02 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "txaio";
|
2021-03-24 09:28:31 +00:00
|
|
|
version = "21.2.1";
|
2021-03-16 19:39:46 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-04-26 12:25:02 +00:00
|
|
|
|
2017-05-30 00:44:27 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-16 19:39:46 +00:00
|
|
|
sha256 = "sha256-fW+JdFaAIz8cTbndt0jfXojSp6N5Yr4XTA/QTI26Hcg=";
|
2017-05-30 00:44:27 +00:00
|
|
|
};
|
|
|
|
|
2021-03-16 19:39:46 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
twisted
|
|
|
|
zope_interface
|
|
|
|
];
|
2017-05-30 00:44:27 +00:00
|
|
|
|
2021-03-16 19:39:46 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-04-26 12:25:02 +00:00
|
|
|
|
2021-03-16 19:39:46 +00:00
|
|
|
disabledTests = [
|
|
|
|
# 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"
|
|
|
|
];
|
2017-04-26 12:25:02 +00:00
|
|
|
|
2021-03-16 19:39:46 +00:00
|
|
|
pythonImportsCheck = [ "txaio" ];
|
2018-10-24 08:46:43 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-03-16 19:39:46 +00:00
|
|
|
description = "Utilities to support code that runs unmodified on Twisted and asyncio";
|
|
|
|
homepage = "https://github.com/crossbario/txaio";
|
|
|
|
license = licenses.mit;
|
2021-05-14 14:00:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-04-26 12:25:02 +00:00
|
|
|
};
|
|
|
|
}
|