nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 24 lines 584 B view raw
1{ lib, buildPythonPackage, fetchPypi, python }: 2 3buildPythonPackage rec { 4 pname = "pytz"; 5 version = "2022.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "sha256-HnYOL+aoFjvAs9mhnE+ENCr6Cir/6/qoSwG5eKAuyqc="; 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}