1{ lib, buildPythonPackage, fetchPypi, unittestCheckHook }:
2
3buildPythonPackage rec {
4 pname = "pytz";
5 version = "2022.2.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "sha256-zqIhQXIE8tGiqgPdrj6GeSGXHQ128U2Hq7RBRBW73PU=";
10 };
11
12 checkInputs = [ unittestCheckHook ];
13
14 unittestFlagsArray = [ "-s" "pytz/tests" ];
15
16 pythonImportsCheck = [ "pytz" ];
17
18 meta = with lib; {
19 description = "World timezone definitions, modern and historical";
20 homepage = "https://pythonhosted.org/pytz";
21 license = licenses.mit;
22 maintainers = with maintainers; [ dotlambda ];
23 };
24}