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