python311Packages.busypie: init at 0.5.1

Easy and expressive busy-waiting for Python

https://github.com/rockem/busypie
This commit is contained in:
Fabian Affolter 2023-10-16 22:50:12 +02:00
parent 46bd31a747
commit 280e0e1afa
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "busypie";
version = "0.5.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rockem";
repo = "busypie";
rev = "refs/tags/v${version}";
hash = "sha256-dw0Sc/a27/EYY7LVMQqDkYuxrUFYK+N6XLk6A7A/eS8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
nativeBuildInputs = [
setuptools
wheel
];
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [
"busypie"
];
meta = with lib; {
description = "Expressive busy wait for Python";
homepage = "https://github.com/rockem/busypie";
changelog = "https://github.com/rockem/busypie/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1697,6 +1697,8 @@ self: super: with self; {
bundlewrap = callPackage ../development/python-modules/bundlewrap { };
busypie = callPackage ../development/python-modules/busypie { };
bx-py-utils = callPackage ../development/python-modules/bx-py-utils { };
bx-python = callPackage ../development/python-modules/bx-python { };