Merge pull request #157678 from fabaff/bump-regex

python3Packages.regex: 2021.11.10 -> 2022.1.18
This commit is contained in:
Fabian Affolter
2022-02-12 00:23:36 +01:00
committed by GitHub
@@ -2,25 +2,28 @@
, buildPythonPackage
, fetchPypi
, python
, isPy27
, pythonOlder
}:
buildPythonPackage rec {
pname = "regex";
version = "2021.11.10";
version = "2022.1.18";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-80HuLfCZm/33qV5EgHXv/g2yEqWTh94acGkOSssD1MY=";
hash = "sha256-l/MtwDqAVKTEpatddh7Uhh6CiywgD+vU5GhXBppIORY=";
};
# Sources for different Python releases are located in same folder
checkPhase = ''
rm -r ${if !isPy27 then "regex_2" else "regex_3"}
${python.interpreter} -m unittest
'';
pythonImportsCheck = [ "regex" ];
pythonImportsCheck = [
"regex"
];
meta = with lib; {
description = "Alternative regular expression module, to replace re";