Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 39 lines 892 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, pythonOlder 3, importlib-resources 4, hypothesis 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "backports-zoneinfo"; 10 version = "0.2.1"; 11 12 src = fetchFromGitHub { 13 owner = "pganssle"; 14 repo = "zoneinfo"; 15 rev = version; 16 sha256 = "sha256-00xdDOVdDanfsjQTd3yjMN2RFGel4cWRrAA3CvSnl24="; 17 }; 18 19 propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ 20 importlib-resources 21 ]; 22 23 pythonImportsCheck = [ "backports.zoneinfo" ]; 24 25 checkInputs = [ 26 hypothesis 27 pytestCheckHook 28 ]; 29 30 # unfortunately /etc/zoneinfo doesn't exist in sandbox, and many tests fail 31 doCheck = false; 32 33 meta = with lib; { 34 description = "Backport of the standard library module zoneinfo"; 35 homepage = "https://github.com/pganssle/zoneinfo"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ jonringer ]; 38 }; 39}