1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5}:
6
7let
8 pname = "boilerpy3";
9 version = "1.0.7";
10in
11buildPythonPackage {
12 inherit pname version;
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "jmriebold";
19 repo = "BoilerPy3";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-dhAB0VbBGsSrgYGUlZEYaKA6sQB/f9Bb3alsRuQ8opo=";
22 };
23
24 postPatch = ''
25 # the version mangling in mautrix_signal/get_version.py interacts badly with pythonRelaxDepsHook
26 substituteInPlace setup.py \
27 --replace '>=3.6.*' '>=3.6'
28 '';
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}