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