1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "regex";
11 version = "2025.7.34";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-nq2XZSF6/QSoaCLfzU7SdH3+Qm6IfaQTsV/wrCRX4ho=";
17 };
18
19 build-system = [ setuptools ];
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://github.com/mrabarnett/mrab-regex";
30 license = [
31 licenses.asl20
32 licenses.cnri-python
33 ];
34 maintainers = [ ];
35 };
36}