2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-01-05 17:05:55 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncio-dgram";
|
2021-08-08 23:34:03 +00:00
|
|
|
version = "2.1.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jsbronder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "1ibyphncb3d8vrs3yk8j6l1smmnibizx9k1vir2njhi09r57h9mx";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# OSError: AF_UNIX path too long
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2021-01-15 22:18:51 +00:00
|
|
|
pytest-asyncio
|
2021-01-05 17:05:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [ "test_protocol_pause_resume" ];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
pythonImportsCheck = [ "asyncio_dgram" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|