Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 56 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, convertdate 4, fetchFromGitHub 5, hijri-converter 6, korean-lunar-calendar 7, polib 8, pytestCheckHook 9, python-dateutil 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "holidays"; 15 version = "0.32"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "dr-prodigy"; 22 repo = "python-holidays"; 23 rev = "refs/tags/v.${version}"; 24 hash = "sha256-YAh5gR4KcUgXzeXy3xyGeokDFsyd9FqRQ5j1TC6wCQY="; 25 }; 26 27 propagatedBuildInputs = [ 28 convertdate 29 python-dateutil 30 hijri-converter 31 korean-lunar-calendar 32 ]; 33 34 nativeCheckInputs = [ 35 polib 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "holidays" 41 ]; 42 43 disabledTests = [ 44 # Failure starting with 0.24 45 "test_l10n" 46 ]; 47 48 meta = with lib; { 49 description = "Generate and work with holidays in Python"; 50 homepage = "https://github.com/dr-prodigy/python-holidays"; 51 changelog = "https://github.com/dr-prodigy/python-holidays/releases/tag/v.${version}"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ jluttine ]; 54 }; 55} 56