2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
|
2020-09-25 04:45:31 +00:00
|
|
|
, six, pytz, jaraco_functools, pythonOlder
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-flake8, pytest-cov, pytest-black, pytest-mypy
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tempora";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "5.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "aa21dd1956e29559ecb2f2f2e14fcdb950085222fbbf86e6c946b5e1a8c36b26";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
disabled = pythonOlder "3.2";
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-freezegun pytest freezegun backports_unittest-mock
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-flake8 pytest-cov pytest-black pytest-mypy
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Objects and routines pertaining to date and time";
|
|
|
|
homepage = "https://github.com/jaraco/tempora";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|