mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
32 lines
720 B
Nix
32 lines
720 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
pname = "regex";
|
|
version = "2019.12.20";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "106e25a841921d8259dcef2a42786caae35bc750fb996f830065b3dfaa67b77e";
|
|
};
|
|
|
|
postCheck = ''
|
|
echo "We now run tests ourselves, since the setuptools installer doesn't."
|
|
${python.interpreter} -c 'import test_regex; test_regex.test_main();'
|
|
'';
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Alternative regular expression module, to replace re";
|
|
homepage = "https://bitbucket.org/mrabarnett/mrab-regex";
|
|
license = lib.licenses.psfl;
|
|
maintainers = with lib.maintainers; [ abbradar ];
|
|
};
|
|
}
|