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