mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
35 lines
661 B
Nix
35 lines
661 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "regex";
|
|
version = "2023.8.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-/L3F8rDxzQ9qVs20b+QdLM4eZE47aIMvPu68X7D3cS4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|