1{ lib, buildPythonPackage, fetchPypi, python }:
2
3buildPythonPackage rec {
4 pname = "pytz";
5 version = "2019.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "d747dd3d23d77ef44c6a3526e274af6efeb0a6f1afd5a69ba4d5be4098c8e141";
10 };
11
12 checkPhase = ''
13 ${python.interpreter} -m unittest discover -s pytz/tests
14 '';
15
16 meta = with lib; {
17 description = "World timezone definitions, modern and historical";
18 homepage = "https://pythonhosted.org/pytz";
19 license = licenses.mit;
20 maintainers = with maintainers; [ dotlambda ];
21 };
22}