blob: cdd6ac9b978114e4ed8f24eed4c19d033aa373ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "asyncio-dgram";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jsbronder";
repo = "asyncio-dgram";
rev = "refs/tags/v${version}";
hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
# OSError: AF_UNIX path too long
doCheck = !stdenv.isDarwin;
disabledTests = [
"test_protocol_pause_resume"
# TypeError: socket type must be 2
"test_from_socket_bad_socket"
];
pythonImportsCheck = [ "asyncio_dgram" ];
meta = with lib; {
description = "Python support for higher level Datagram";
homepage = "https://github.com/jsbronder/asyncio-dgram";
changelog = "https://github.com/jsbronder/asyncio-dgram/blob/v${version}/ChangeLog";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|