1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytest-timeout,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10 wheel,
11}:
12
13buildPythonPackage rec {
14 pname = "busypie";
15 version = "0.5.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "rockem";
22 repo = "busypie";
23 tag = "v${version}";
24 hash = "sha256-dw0Sc/a27/EYY7LVMQqDkYuxrUFYK+N6XLk6A7A/eS8=";
25 };
26
27 postPatch = ''
28 substituteInPlace setup.py \
29 --replace "pytest-runner" ""
30 '';
31
32 nativeBuildInputs = [
33 setuptools
34 wheel
35 ];
36
37 nativeCheckInputs = [
38 pytest-asyncio
39 pytest-timeout
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "busypie" ];
44
45 meta = with lib; {
46 description = "Expressive busy wait for Python";
47 homepage = "https://github.com/rockem/busypie";
48 changelog = "https://github.com/rockem/busypie/releases/tag/v${version}";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ fab ];
51 };
52}