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