1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 pname = "exrex"; 9 version = "0.11.0"; 10 format = "setuptools"; 11 12 disabled = pythonOlder "3.8"; 13 14 src = fetchFromGitHub { 15 owner = "asciimoo"; 16 repo = "exrex"; 17 # https://github.com/asciimoo/exrex/issues/68 18 rev = "239e4da37ff3a66d8b4b398d189299ae295594c3"; 19 hash = "sha256-Tn/XIIy2wnob+1FmP9bdD9+gHLQZDofF2c1FqOijKWA="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace "version=about['__version__']," "version='${version}'," 25 ''; 26 27 # Projec thas no released tests 28 doCheck = false; 29 30 pythonImportsCheck = [ 31 "exrex" 32 ]; 33 34 meta = with lib; { 35 description = "Irregular methods on regular expressions"; 36 homepage = "https://github.com/asciimoo/exrex"; 37 license = with licenses; [ agpl3Plus ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}