2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2018-07-21 01:44:44 +01:00
|
|
|
, pytz }:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tzlocal";
|
2021-08-27 11:01:40 +01:00
|
|
|
version = "2.1"; # version needs to be compatible with APScheduler
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytz ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:35 +01:00
|
|
|
sha256 = "643c97c5294aedc737780a49d9df30889321cbe1204eac2c2ec6134035a92e44";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# test fail (timezone test fail)
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-03-15 16:21:57 +00:00
|
|
|
pythonImportsCheck = [ "tzlocal" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-05 10:16:41 +01:00
|
|
|
description = "Tzinfo object for the local timezone";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/regebro/tzlocal";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = licenses.cddl;
|
2021-03-15 16:21:57 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
}
|