5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mock,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
twisted,
|
|
zope-interface,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "txaio";
|
|
version = "23.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-+akhbpduXjJG39ESrXrVXKkVYGtguEp1esdpvUBP9wQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
twisted
|
|
zope-interface
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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";
|
|
changelog = "https://github.com/crossbario/txaio/blob/v${version}/docs/releases.rst";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|