2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
jaraco-functools,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-freezer,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
python-dateutil,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tempora";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "5.7.0";
|
|
|
|
pyproject = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaraco";
|
|
|
|
repo = "tempora";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-M6nWKYvgn4tk2diiTDAYb1uQdP8H1M8yqhsFLJ9H7HU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2023-08-04 22:07:22 +00:00
|
|
|
jaraco-functools
|
2024-09-19 14:19:46 +00:00
|
|
|
python-dateutil
|
2022-04-15 01:41:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-freezer
|
2022-04-15 01:41:22 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"tempora"
|
|
|
|
"tempora.schedule"
|
|
|
|
"tempora.timing"
|
|
|
|
"tempora.utc"
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Objects and routines pertaining to date and time";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "calc-prorate";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/jaraco/tempora";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/jaraco/tempora/blob/v${version}/NEWS.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|