summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/boilerpy3/default.nix
blob: 879d24e4fb0db45f66104086d5c283c68c46a3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
}:

let
  pname = "boilerpy3";
  version = "1.0.7";
in
buildPythonPackage {
  inherit pname version;
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "jmriebold";
    repo = "BoilerPy3";
    tag = "v${version}";
    hash = "sha256-dhAB0VbBGsSrgYGUlZEYaKA6sQB/f9Bb3alsRuQ8opo=";
  };

  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 = {
    homepage = "https://github.com/jmriebold/BoilerPy3";
    description = "Python port of Boilerpipe library";
    changelog = "https://github.com/jmriebold/BoilerPy3/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ happysalada ];
  };
}