Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, buildPythonPackage, fetchFromGitHub, hatchling, packaging, pytestCheckHook, python, python-dateutil, pytz, trove-classifiers, tzlocal, versionCheckHook, which,}:
buildPythonPackage (finalAttrs: { pname = "croniter"; version = "6.2.4"; pyproject = true;
src = fetchFromGitHub { owner = "pallets-eco"; repo = "croniter"; tag = "${finalAttrs.version}"; hash = "sha256-Ff6fHFBOBQmrf8OLPNuhHjRqyPuS1sStd5hWh4oI0cI="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "hatchling==1.30.1" "hatchling>=1.30.1" \ --replace-fail "packaging==26.2" "packaging" \ --replace-fail "trove-classifiers==2026.6.1.19" "trove-classifiers" '';
build-system = [ hatchling packaging trove-classifiers ];
dependencies = [ python-dateutil ];
nativeCheckInputs = [ pytestCheckHook pytz tzlocal ];
nativeInstallCheckInputs = [ versionCheckHook which ];
pythonImportsCheck = [ "croniter" ];
versionCheckProgramArg = "${placeholder "out"}/${python.sitePackages}";
preInstallCheck = '' versionCheckProgram="$(which ls)" '';
meta = { description = "Library to iterate over datetime object with cron like format"; homepage = "https://github.com/kiorky/croniter"; changelog = "https://github.com/kiorky/croniter/blob/${finalAttrs.version}/CHANGELOG.rst"; license = lib.licenses.mit; maintainers = [ ]; };})