34 lines
819 B
Nix
34 lines
819 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
requests,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wikipedia-api";
|
|
version = "0.7.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "martin-majlis";
|
|
repo = "Wikipedia-API";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-bjmvUZpwDJJrB2k13NMSMHNyiJFXCvo007PPHwBVeq8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "wikipediaapi" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for Wikipedia";
|
|
homepage = "https://github.com/martin-majlis/Wikipedia-API";
|
|
changelog = "https://github.com/martin-majlis/Wikipedia-API/blob/${src.rev}/CHANGES.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
};
|
|
}
|