2018-02-03 12:48:47 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytz";
|
2021-02-04 12:14:52 +01:00
|
|
|
version = "2021.1";
|
2018-02-03 12:48:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-04 12:14:52 +01:00
|
|
|
sha256 = "sha256-g6SpCJS/OOJDzwUsi1jzgb/pp6SD9qnKsUC8f3AqxNo=";
|
2018-02-03 12:48:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover -s pytz/tests
|
|
|
|
'';
|
|
|
|
|
2021-02-04 12:14:52 +01:00
|
|
|
pythonImportsCheck = [ "pytz" ];
|
|
|
|
|
2018-02-03 12:48:47 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "World timezone definitions, modern and historical";
|
2019-04-22 10:14:28 +02:00
|
|
|
homepage = "https://pythonhosted.org/pytz";
|
2018-02-03 12:48:47 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|