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