Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 unittestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "pytz"; 11 version = "2024.1"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-KilzXqnBi68UtEiEa95aSAMO0mdXhHLYlVzQ50Q6mBI="; 17 }; 18 19 nativeBuildInputs = [ setuptools ]; 20 21 nativeCheckInputs = [ unittestCheckHook ]; 22 23 unittestFlagsArray = [ 24 "-s" 25 "pytz/tests" 26 ]; 27 28 pythonImportsCheck = [ "pytz" ]; 29 30 meta = with lib; { 31 changelog = "https://launchpad.net/pytz/+announcements"; 32 description = "World timezone definitions, modern and historical"; 33 homepage = "https://pythonhosted.org/pytz"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ dotlambda ]; 36 }; 37}