2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-01-05 17:05:55 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
2022-01-03 16:56:52 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncio-dgram";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.1.2";
|
2022-01-03 16:56:52 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jsbronder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
pytest-asyncio
|
2022-01-03 16:56:52 +00:00
|
|
|
pytestCheckHook
|
2021-01-05 17:05:55 +00:00
|
|
|
];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
# OSError: AF_UNIX path too long
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_protocol_pause_resume"
|
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2022-01-03 16:56:52 +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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|