1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 beautifulsoup4,
6 requests,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "wikipedia";
12 version = "1.4.0";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-2w+tGCn91EGxhSMG6YVjmCBNwHhtKZbdLgyLuOJhM7I=";
18 };
19
20 propagatedBuildInputs = [
21 beautifulsoup4
22 requests
23 ];
24
25 nativeCheckInputs = [ unittestCheckHook ];
26
27 unittestFlagsArray = [ "tests/ '*test.py'" ];
28
29 meta = with lib; {
30 description = "Pythonic wrapper for the Wikipedia API";
31 homepage = "https://github.com/goldsmith/Wikipedia";
32 changelog = "https://github.com/goldsmith/Wikipedia/blob/master/CHANGELOG.md";
33 license = licenses.mit;
34 maintainers = with maintainers; [ natsukium ];
35 };
36}