1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "regex";
11 version = "2025.7.34";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-nq2XZSF6/QSoaCLfzU7SdH3+Qm6IfaQTsV/wrCRX4ho=";
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 = [ ];
32 };
33}