f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
freezegun,
|
|
jaraco-functools,
|
|
pytest-freezegun,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pytz,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tempora";
|
|
version = "5.6.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-O/zBLL27uv7KrMuQl/w3VENbnQY9zkMzjk+ofTkQSu0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
jaraco-functools
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytest-freezegun
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"tempora"
|
|
"tempora.schedule"
|
|
"tempora.timing"
|
|
"tempora.utc"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Objects and routines pertaining to date and time";
|
|
mainProgram = "calc-prorate";
|
|
homepage = "https://github.com/jaraco/tempora";
|
|
changelog = "https://github.com/jaraco/tempora/blob/v${version}/NEWS.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|