summary refs log blame commit diff
path: root/pkgs/development/python-modules/regex/default.nix
blob: 512a7162f0e3c814be0e233f832f32d2c872181f (plain) (tree)
1
2
3
4
5
6
7
8
9


                    
        
             

  

                        
                       


                               


                          
                                                                 

    
                 
                                     

     


                        

                    
                                                                         
                                                             

                                                 
    
 
{ lib
, buildPythonPackage
, fetchPypi
, python
, pythonOlder
}:

buildPythonPackage rec {
  pname = "regex";
  version = "2022.3.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-eeWvH/JYvA/gvdb2m8SuM5NaiY48vvu8zyLoiif6BTs=";
  };

  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 ];
  };
}