1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
42 lines
924 B
Nix
42 lines
924 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "exrex";
|
|
version = "0.11.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asciimoo";
|
|
repo = "exrex";
|
|
# https://github.com/asciimoo/exrex/issues/68
|
|
rev = "239e4da37ff3a66d8b4b398d189299ae295594c3";
|
|
hash = "sha256-Tn/XIIy2wnob+1FmP9bdD9+gHLQZDofF2c1FqOijKWA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "version=about['__version__']," "version='${version}',"
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
dontWrapPythonPrograms = true;
|
|
|
|
# Project thas no released tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "exrex" ];
|
|
|
|
meta = {
|
|
description = "Irregular methods on regular expressions";
|
|
homepage = "https://github.com/asciimoo/exrex";
|
|
license = with lib.licenses; [ agpl3Plus ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|