at 22.05-pre 597 B view raw
1{ lib, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "pytz"; 5 version = "2021.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326"; 10 }; 11 12 checkPhase = '' 13 ${python.interpreter} -m unittest discover -s pytz/tests 14 ''; 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}