mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
60 lines
953 B
Nix
60 lines
953 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.1.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-PnxKU2mheIyIqZtr46THTAx3KNO2L9dop+gb0L4OiN8=";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|