2018-02-03 11:48:47 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytz";
|
2020-11-29 14:04:40 +00:00
|
|
|
version = "2020.4";
|
2018-02-03 11:48:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:40 +00:00
|
|
|
sha256 = "3e6b7dd2d1e0a59084bcee14a17af60c5c562cdc16d828e8eba2e683d3a7e268";
|
2018-02-03 11:48:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s pytz/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "World timezone definitions, modern and historical";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = "https://pythonhosted.org/pytz";
|
2018-02-03 11:48:47 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|