2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "boilerpy3";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.7";
|
2023-07-15 17:15:38 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jmriebold";
|
|
|
|
repo = "BoilerPy3";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-dhAB0VbBGsSrgYGUlZEYaKA6sQB/f9Bb3alsRuQ8opo=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# the version mangling in mautrix_signal/get_version.py interacts badly with pythonRelaxDepsHook
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '>=3.6.*' '>=3.6'
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "boilerpy3" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jmriebold/BoilerPy3";
|
|
|
|
description = "Python port of Boilerpipe library";
|
|
|
|
changelog = "https://github.com/jmriebold/BoilerPy3/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|