1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "wikipedia-api";
12 version = "0.8.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "martin-majlis";
17 repo = "Wikipedia-API";
18 tag = "v${version}";
19 hash = "sha256-5wi1HVkD36RnmIAKSKRYTc30HtYMiFrRoYzZRWENd/M=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ requests ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "wikipediaapi" ];
29
30 meta = with lib; {
31 description = "Python wrapper for Wikipedia";
32 homepage = "https://github.com/martin-majlis/Wikipedia-API";
33 changelog = "https://github.com/martin-majlis/Wikipedia-API/blob/${src.tag}/CHANGES.rst";
34 license = licenses.mit;
35 maintainers = with maintainers; [ mbalatsko ];
36 };
37}