1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "regex";
11 version = "2024.5.15";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-0+4C2eX0gsyDCRNKke6qy90iYboRGw/vN0jutJE+aiw=";
19 };
20
21 checkPhase = ''
22 ${python.interpreter} -m unittest
23 '';
24
25 pythonImportsCheck = [ "regex" ];
26
27 meta = with lib; {
28 description = "Alternative regular expression module, to replace re";
29 homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
30 license = licenses.psfl;
31 maintainers = with maintainers; [ abbradar ];
32 };
33}