2018-07-23 21:26:04 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2019-07-21 10:21:00 +01:00
|
|
|
, setuptools_scm, pytest, freezegun, backports_unittest-mock
|
2018-07-23 21:26:04 +01:00
|
|
|
, six, pytz, jaraco_functools }:
|
2017-08-31 12:16:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-09-05 10:16:41 +01:00
|
|
|
pname = "tempora";
|
2019-04-16 18:15:41 +01:00
|
|
|
version = "1.14.1";
|
2017-08-31 12:16:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 18:15:41 +01:00
|
|
|
sha256 = "cb60b1d2b1664104e307f8e5269d7f4acdb077c82e35cd57246ae14a3427d2d6";
|
2017-08-31 12:16:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
|
|
|
2018-07-23 21:26:04 +01:00
|
|
|
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
|
|
|
|
2019-07-21 10:21:00 +01:00
|
|
|
checkInputs = [ pytest freezegun backports_unittest-mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
substituteInPlace pytest.ini --replace "--flake8" ""
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
}
|