at 18.03-beta 560 B view raw
1{ lib, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "pytz"; 5 version = "2018.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "410bcd1d6409026fbaa65d9ed33bf6dd8b1e94a499e32168acfc7b332e4095c0"; 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 = "http://pythonhosted.org/pytz"; 19 license = licenses.mit; 20 maintainers = with maintainers; [ dotlambda ]; 21 }; 22}