2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncio-dgram";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.2.0";
|
|
|
|
pyproject = true;
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jsbronder";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "asyncio-dgram";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [
|
2023-02-22 10:55:15 +00:00
|
|
|
pytest-asyncio
|
2024-05-15 15:35:15 +00:00
|
|
|
pytestCheckHook
|
2023-02-22 10:55:15 +00:00
|
|
|
];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
# OSError: AF_UNIX path too long
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_protocol_pause_resume"
|
2023-02-22 10:55:15 +00:00
|
|
|
# TypeError: socket type must be 2
|
|
|
|
"test_from_socket_bad_socket"
|
2022-01-03 16:56:52 +00:00
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "asyncio_dgram" ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python support for higher level Datagram";
|
|
|
|
homepage = "https://github.com/jsbronder/asyncio-dgram";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/jsbronder/asyncio-dgram/blob/v${version}/ChangeLog";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|