3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
, twisted
|
|
, zope_interface
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "txaio";
|
|
version = "21.2.1";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-fW+JdFaAIz8cTbndt0jfXojSp6N5Yr4XTA/QTI26Hcg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
twisted
|
|
zope_interface
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [ "txaio" ];
|
|
|
|
meta = with lib; {
|
|
description = "Utilities to support code that runs unmodified on Twisted and asyncio";
|
|
homepage = "https://github.com/crossbario/txaio";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|