mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
python3Packages.wikipedia-api: init at 0.6.0
This commit is contained in:
parent
187496d97f
commit
0ea03f139c
35
pkgs/development/python-modules/wikipedia-api/default.nix
Normal file
35
pkgs/development/python-modules/wikipedia-api/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Wikipedia-API";
|
||||
version = "0.6.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "martin-majlis";
|
||||
repo = "Wikipedia-API";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-cmwyQhKbkIpZXkKqqT0X2Lp8OFma2joeb4uxDRPiQe8=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -14021,6 +14021,8 @@ self: super: with self; {
|
||||
|
||||
wikipedia = callPackage ../development/python-modules/wikipedia { };
|
||||
|
||||
wikipedia-api = callPackage ../development/python-modules/wikipedia-api { };
|
||||
|
||||
wikitextparser = callPackage ../development/python-modules/wikitextparser { };
|
||||
|
||||
willow = callPackage ../development/python-modules/willow { };
|
||||
|
Loading…
Reference in New Issue
Block a user