Files
nixpkgs/pkgs/development/python-modules/exrex/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
972 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "exrex";
version = "0.11.0";
pyproject = true;
disabled = pythonOlder "3.8";
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 ];
};
}