2018-02-03 11:48:47 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytz";
|
2021-02-01 12:16:13 +00:00
|
|
|
version = "2020.5";
|
2018-02-03 11:48:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-01 12:16:13 +00:00
|
|
|
sha256 = "180befebb1927b16f6b57101720075a984c019ac16b1b7575673bea42c6c3da5";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|