2018-07-23 21:26:04 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-06-25 10:24:38 +01:00
|
|
|
, setuptools_scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock
|
2020-08-18 08:53:53 +01:00
|
|
|
, six, pytz, jaraco_functools, pythonOlder
|
|
|
|
, pytest-flake8, pytestcov, pytest-black, pytest-mypy
|
|
|
|
}:
|
2017-08-31 12:16:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-09-05 10:16:41 +01:00
|
|
|
pname = "tempora";
|
2020-11-04 14:04:24 +00:00
|
|
|
version = "4.0.1";
|
2017-08-31 12:16:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:24 +00:00
|
|
|
sha256 = "9af06854fafb26d3d40d3dd6402e8baefaf57f90e48fdc9a94f6b22827a60fb3";
|
2017-08-31 12:16:17 +01:00
|
|
|
};
|
|
|
|
|
2020-06-25 12:27:54 +01:00
|
|
|
disabled = pythonOlder "3.2";
|
|
|
|
|
2020-06-22 23:33:46 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2017-08-31 12:16:17 +01:00
|
|
|
|
2018-07-23 21:26:04 +01:00
|
|
|
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
|
|
|
|
2020-06-25 10:24:38 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest-freezegun pytest freezegun backports_unittest-mock
|
2020-08-18 08:53:53 +01:00
|
|
|
pytest-flake8 pytestcov pytest-black pytest-mypy
|
2020-06-25 10:24:38 +01:00
|
|
|
];
|
2019-07-21 10:21:00 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2020-06-25 10:24:38 +01:00
|
|
|
pytest
|
2019-07-21 10:21:00 +01:00
|
|
|
'';
|
|
|
|
|
2018-07-23 21:26:04 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Objects and routines pertaining to date and time";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jaraco/tempora";
|
2018-07-23 21:26:04 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2017-08-31 12:16:17 +01:00
|
|
|
}
|