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