mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
0215034f25
when they already rely on SRI hashes.
60 lines
951 B
Nix
60 lines
951 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
|
|
# build time
|
|
, setuptools-scm
|
|
|
|
# runtime
|
|
, pytz
|
|
, jaraco_functools
|
|
|
|
# tests
|
|
, freezegun
|
|
, pytest-freezegun
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tempora";
|
|
version = "5.2.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-txdkhsWUinUgHo0LIe8sI8qAhHQGDfRyGMkilb3OUnY=";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/jaraco/tempora";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|