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
|
|
|
|
, pytest-flake8, pytestcov, pytest-black, pytest-mypy
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tempora";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "4.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "9af06854fafb26d3d40d3dd6402e8baefaf57f90e48fdc9a94f6b22827a60fb3";
|
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
|
2020-09-25 04:45:31 +00:00
|
|
|
pytest-flake8 pytestcov 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;
|
|
|
|
};
|
|
|
|
}
|