python3Packages.holidays: 0.10.3 -> 0.10.5.2

This commit is contained in:
Martin Weinelt 2021-02-03 23:22:49 +01:00
parent 44059c4aff
commit d8b6ab7bba
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -3,25 +3,46 @@
, fetchPypi , fetchPypi
, convertdate , convertdate
, dateutil , dateutil
, hijri-converter
, korean-lunar-calendar , korean-lunar-calendar
, six , six
, python
, flake8
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "holidays"; pname = "holidays";
version = "0.10.3"; version = "0.10.5.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "839281f2b1ae7ac576da7951472482f6e714818296853107ea861fa60f5013cc"; sha256 = "0g4hqbb94cwxlcwsjzrzxzlann1ks2r4mgnfzqz74a2rg1nih5zd";
}; };
postPatch = ''
# ignore too long line issues
# https://github.com/dr-prodigy/python-holidays/issues/423
substituteInPlace tests.py \
--replace "flake8.get_style_guide(ignore=[" "flake8.get_style_guide(ignore=['E501', "
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
convertdate convertdate
dateutil dateutil
hijri-converter
korean-lunar-calendar korean-lunar-calendar
six six
]; ];
checkInputs = [
flake8
];
checkPhase = ''
${python.interpreter} -m unittest
'';
pythonImportsCheck = [ "holidays" ]; pythonImportsCheck = [ "holidays" ];
meta = with lib; { meta = with lib; {