Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / boilerpy3 / default.nix
blobef2980959d0b0a484894309ae039688d7646b616
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 }:
7 let
8   pname = "boilerpy3";
9   version = "1.0.7";
11 buildPythonPackage {
12   inherit pname version;
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "jmriebold";
19     repo = "BoilerPy3";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-dhAB0VbBGsSrgYGUlZEYaKA6sQB/f9Bb3alsRuQ8opo=";
22   };
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   '';
31   pythonImportsCheck = [ "boilerpy3" ];
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   };