1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 forbiddenfruit,
7 pytestCheckHook,
8 pytest-asyncio,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "blockbuster";
14 version = "1.5.25";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "cbornet";
19 repo = "blockbuster";
20 tag = "v${version}";
21 hash = "sha256-1+Q1IdJXqLAy7kIcVU38TC3dtMeWAn7YOLyGrjCkxD0=";
22 };
23
24 build-system = [ hatchling ];
25
26 dependencies = [ forbiddenfruit ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 pytest-asyncio
31 requests
32 ];
33
34 disabledTests = [
35 # network access
36 "test_ssl_socket"
37 ];
38
39 __darwinAllowLocalNetworking = true;
40
41 pythonImportsCheck = [ "blockbuster" ];
42
43 meta = {
44 description = "Utility to detect blocking calls in the async event loop";
45 homepage = "https://github.com/cbornet/blockbuster";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ ];
48 };
49}