push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
mock,
pytestCheckHook,
}:
buildPythonPackage {
pname = "contexttimer";
version = "unstable-2024-09-05";
pyproject = true;
src = fetchFromGitHub {
owner = "brouberol";
repo = "contexttimer";
rev = "8e77927b8b75365f8e2bc456d2457b3e47c67815";
hash = "sha256-LCyXJa+7XkfxzcLGonv1yfOW+gZhLFBAbBT+5IP39qA=";
};
disabled = pythonOlder "3.12";
build-system = [ setuptools ];
preCheck = ''
substituteInPlace tests/test_timer.py \
--replace-fail "assertRegexpMatches" "assertRegex"
'';
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "contexttimer" ];
meta = {
homepage = "https://github.com/brouberol/contexttimer";
description = "Timer as a context manager";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ atila ];
};
}