depot/third_party/nixpkgs/pkgs/development/python-modules/tempora/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

59 lines
947 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.0.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-y6Dxl6ZIg78+c2V++8AyTVvxcXnndpsThbTXXSbNkSc=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
jaraco_functools
pytz
];
checkInputs = [
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; [ ];
};
}