2018-01-01 11:46:35 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2018-03-10 11:35:22 +01:00
|
|
|
python,
|
2022-01-31 18:13:50 +01:00
|
|
|
pythonOlder,
|
2018-01-01 11:46:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "regex";
|
2024-06-19 05:07:12 +02:00
|
|
|
version = "2024.5.15";
|
2022-01-31 18:13:50 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-01-01 11:46:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-19 05:07:12 +02:00
|
|
|
hash = "sha256-0+4C2eX0gsyDCRNKke6qy90iYboRGw/vN0jutJE+aiw=";
|
2018-01-01 11:46:35 +01:00
|
|
|
};
|
|
|
|
|
2021-04-23 16:49:06 +02:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest
|
2018-03-10 11:35:22 +01:00
|
|
|
'';
|
|
|
|
|
2022-01-31 18:13:50 +01:00
|
|
|
pythonImportsCheck = [ "regex" ];
|
2021-04-07 08:25:07 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-01-01 11:46:35 +01:00
|
|
|
description = "Alternative regular expression module, to replace re";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
|
2021-04-07 08:25:07 +02:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2018-01-01 11:46:35 +01:00
|
|
|
};
|
2018-02-25 19:47:45 +03:00
|
|
|
}
|