python3Packages.regex: 2021.11.10 -> 2022.1.18

This commit is contained in:
Fabian Affolter 2022-01-31 18:13:50 +01:00
parent 69382d41d5
commit 106c28df54

View file

@ -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";