From 7af9e1fe8a186145fe53dc7a87cdc51ad80aa300 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 27 Feb 2023 11:06:37 +0100 Subject: [PATCH] python310Packages.holidays: 0.18 -> 0.20 Changelog: https://github.com/dr-prodigy/python-holidays/releases/tag/v.0.20 --- .../python-modules/holidays/default.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/holidays/default.nix b/pkgs/development/python-modules/holidays/default.nix index 6d98f876bc70..bab50ea617b3 100644 --- a/pkgs/development/python-modules/holidays/default.nix +++ b/pkgs/development/python-modules/holidays/default.nix @@ -1,24 +1,26 @@ { lib , buildPythonPackage , convertdate -, python-dateutil -, fetchPypi +, fetchFromGitHub , hijri-converter , korean-lunar-calendar , pytestCheckHook +, python-dateutil , pythonOlder }: buildPythonPackage rec { pname = "holidays"; - version = "0.18"; + version = "0.20"; format = "setuptools"; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-6U2dNTb/Gipw1tL1bLBV65qV0LmjpfuBuej5024zN4k="; + src = fetchFromGitHub { + owner = "dr-prodigy"; + repo = "python-holidays"; + rev = "refs/tags/v.${version}"; + hash = "sha256-hz0v4g94RMA1dKOLu4BSYnK5EPNl1hIWEShFJWO0F3A="; }; propagatedBuildInputs = [ @@ -36,10 +38,6 @@ buildPythonPackage rec { "holidays" ]; - disabledTestPaths = [ - "test/test_imports.py" - ]; - meta = with lib; { description = "Generate and work with holidays in Python"; homepage = "https://github.com/dr-prodigy/python-holidays";