9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
40 lines
941 B
Nix
40 lines
941 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
}:
|
|
|
|
let
|
|
pname = "boilerpy3";
|
|
version = "1.0.6";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jmriebold";
|
|
repo = "BoilerPy3";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-hl2+XpSvVaHpq9RGMnSzWHCA8TtBQnYwDtEOia1Rl/A=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|