1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6}: 7 8let 9 pname = "boilerpy3"; 10 version = "1.0.7"; 11in 12buildPythonPackage { 13 inherit pname version; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "jmriebold"; 20 repo = "BoilerPy3"; 21 tag = "v${version}"; 22 hash = "sha256-dhAB0VbBGsSrgYGUlZEYaKA6sQB/f9Bb3alsRuQ8opo="; 23 }; 24 25 postPatch = '' 26 # the version mangling in mautrix_signal/get_version.py interacts badly with pythonRelaxDepsHook 27 substituteInPlace setup.py \ 28 --replace '>=3.6.*' '>=3.6' 29 ''; 30 31 pythonImportsCheck = [ "boilerpy3" ]; 32 33 meta = with lib; { 34 homepage = "https://github.com/jmriebold/BoilerPy3"; 35 description = "Python port of Boilerpipe library"; 36 changelog = "https://github.com/jmriebold/BoilerPy3/releases/tag/v${version}"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ happysalada ]; 39 }; 40}