Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
926 B · 45 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ 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 ]; };}