Merge pull request #165190 from r-ryantm/auto-update/python310Packages.arpeggio

This commit is contained in:
Sandro 2022-03-23 07:00:37 +01:00 committed by GitHub
commit 30d2d4a499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 23 deletions

View file

@ -1,34 +1,32 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, glibcLocales
, pytest-runner
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "Arpeggio"; pname = "arpeggio";
version = "1.10.2"; version = "2.0.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "Arpeggio";
sha256 = "bfe349f252f82f82d84cb886f1d5081d1a31451e6045275e9f90b65d0daa06f1"; inherit version;
sha256 = "sha256-1rA4OQGbuKaHhfkpLuajaxlU64S5JbhKa4peHibT7T0=";
}; };
# Shall not be needed for next release postPatch = ''
LC_ALL = "en_US.UTF-8"; substituteInPlace setup.cfg \
buildInputs = [ glibcLocales ]; --replace "pytest-runner" ""
'';
nativeBuildInputs = [ pytest-runner ];
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];
disabledTests = [ "test_examples" "test_issue_22" ]; pythonImportsCheck = [ "arpeggio" ];
dontUseSetuptoolsCheck = true; meta = with lib; {
description = "Recursive descent parser with memoization based on PEG grammars (aka Packrat parser)";
meta = { homepage = "https://github.com/textX/Arpeggio";
description = "Packrat parser interpreter"; license = licenses.mit;
license = lib.licenses.mit; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

View file

@ -3,7 +3,7 @@
, fetchPypi , fetchPypi
, six , six
, attrs , attrs
, pytest , pytestCheckHook
, hypothesis , hypothesis
, pretend , pretend
, arpeggio , arpeggio
@ -18,11 +18,27 @@ buildPythonPackage rec {
sha256 = "c902e0653bcce927cc156a7fd9b3a51924cbce3bf3d0bfd49fc282bfd0c5dfd3"; sha256 = "c902e0653bcce927cc156a7fd9b3a51924cbce3bf3d0bfd49fc282bfd0c5dfd3";
}; };
propagatedBuildInputs = [ six attrs arpeggio ]; postPatch = ''
checkInputs = [ pytest hypothesis pretend ]; substituteInPlace setup.py \
--replace "arpeggio ~= 1.7" "arpeggio"
'';
meta = { propagatedBuildInputs = [
description = "parver allows parsing and manipulation of PEP 440 version numbers."; six
license = lib.licenses.mit; attrs
arpeggio
];
checkInputs = [
pytestCheckHook
hypothesis
pretend
];
meta = with lib; {
description = "Allows parsing and manipulation of PEP 440 version numbers";
homepage = "https://github.com/RazerM/parver";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }