1{ lib
2, buildPythonPackage
3, fetchPypi
4, beautifulsoup4
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "micawber";
10 version = "0.5.5";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-CsWBS2X/KngfsTlLkaI6ipX3NJK2u49wW67q2C6t1UM=";
18 };
19
20 propagatedBuildInputs = [
21 beautifulsoup4
22 ];
23
24 meta = with lib; {
25 homepage = "https://micawber.readthedocs.io/en/latest/";
26 description = "Module for extracting rich content from URLs";
27 license = licenses.mit;
28 longDescription = ''
29 micawber supplies a few methods for retrieving rich metadata
30 about a variety of links, such as links to youtube videos.
31 micawber also provides functions for parsing blocks of text and html
32 and replacing links to videos with rich embedded content.
33 '';
34 maintainers = with maintainers; [ davidak ];
35 };
36}