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