2021-01-07 20:13:24 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-01-05 15:29:33 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncio-dgram";
|
2021-06-04 12:05:35 +02:00
|
|
|
version = "2.0.0";
|
2021-01-05 15:29:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jsbronder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-04 12:05:35 +02:00
|
|
|
sha256 = "sha256-EL3iOoCfLAtfdMI1J2XMf4izOEo9+a+0PNQs+4HuEfo=";
|
2021-01-05 15:29:33 +01:00
|
|
|
};
|
|
|
|
|
2021-01-07 20:13:24 +01:00
|
|
|
# OSError: AF_UNIX path too long
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-05 15:29:33 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2021-01-07 20:13:24 +01:00
|
|
|
pytest-asyncio
|
2021-01-05 15:29:33 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [ "test_protocol_pause_resume" ];
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|