Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 34 lines 819 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "wikipedia-api"; 11 version = "0.7.1"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "martin-majlis"; 16 repo = "Wikipedia-API"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-bjmvUZpwDJJrB2k13NMSMHNyiJFXCvo007PPHwBVeq8="; 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}