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