python3Packages.tempora: 5.0.0 -> 5.0.1
This commit is contained in:
@@ -1,36 +1,59 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, setuptools-scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
|
||||
, six, pytz, jaraco_functools, pythonOlder
|
||||
, pytest-flake8, pytest-cov, pytest-black, pytest-mypy
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
|
||||
# build time
|
||||
, setuptools-scm
|
||||
|
||||
# runtime
|
||||
, pytz
|
||||
, jaraco_functools
|
||||
|
||||
# tests
|
||||
, freezegun
|
||||
, pytest-freezegun
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tempora";
|
||||
version = "5.0.0";
|
||||
version = "5.0.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "aa21dd1956e29559ecb2f2f2e14fcdb950085222fbbf86e6c946b5e1a8c36b26";
|
||||
sha256 = "sha256-y6Dxl6ZIg78+c2V++8AyTVvxcXnndpsThbTXXSbNkSc=";
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.2";
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
||||
|
||||
checkInputs = [
|
||||
pytest-freezegun pytest freezegun backports_unittest-mock
|
||||
pytest-flake8 pytest-cov pytest-black pytest-mypy
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
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; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user