Merge pull request #118669 from fabaff/bump-holidays

python3Packages.holidays: 0.10.5.2 -> 0.11.1
This commit is contained in:
Sandro 2021-04-06 16:06:36 +02:00 committed by GitHub
commit ccfad231f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,32 +1,25 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi
, convertdate , convertdate
, dateutil , dateutil
, fetchPypi
, hijri-converter , hijri-converter
, korean-lunar-calendar , korean-lunar-calendar
, pytestCheckHook
, pythonOlder
, six , six
, python
, flake8
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "holidays"; pname = "holidays";
version = "0.10.5.2"; version = "0.11.1";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0g4hqbb94cwxlcwsjzrzxzlann1ks2r4mgnfzqz74a2rg1nih5zd"; sha256 = "sha256-f6/YRvZ/Drfh+cGcOPSnlnvweu1d7S3XqKovk3sOoBs=";
}; };
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
@ -36,13 +29,9 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
flake8 pytestCheckHook
]; ];
checkPhase = ''
${python.interpreter} -m unittest
'';
pythonImportsCheck = [ "holidays" ]; pythonImportsCheck = [ "holidays" ];
meta = with lib; { meta = with lib; {