2022-01-01 11:15:02 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-01-05 15:29:33 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
2022-01-01 11:15:02 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-01-05 15:29:33 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncio-dgram";
|
2022-02-06 23:24:46 +01:00
|
|
|
version = "2.1.2";
|
2022-01-01 11:15:02 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
2021-01-05 15:29:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jsbronder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-06 23:24:46 +01:00
|
|
|
sha256 = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q=";
|
2021-01-05 15:29:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-07 20:13:24 +01:00
|
|
|
pytest-asyncio
|
2022-01-01 11:15:02 +01:00
|
|
|
pytestCheckHook
|
2021-01-05 15:29:33 +01:00
|
|
|
];
|
|
|
|
|
2022-01-01 11:15:02 +01:00
|
|
|
# OSError: AF_UNIX path too long
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_protocol_pause_resume"
|
|
|
|
];
|
2021-08-07 14:13:33 +02:00
|
|
|
|
2022-01-01 11:15:02 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncio_dgram"
|
|
|
|
];
|
2021-01-05 15:29:33 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|