fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
33 lines
664 B
Nix
33 lines
664 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
python,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "regex";
|
|
version = "2023.12.25";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-KRcaoSjaaa/fS95BLVvtwzXyyo/P5EiQOFd9BfFhgeU=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest
|
|
'';
|
|
|
|
pythonImportsCheck = [ "regex" ];
|
|
|
|
meta = with lib; {
|
|
description = "Alternative regular expression module, to replace re";
|
|
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
|
|
license = licenses.psfl;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|