Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 22 lines 561 B view raw
1{ lib, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "pytz"; 5 version = "2020.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048"; 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}