9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
39 lines
787 B
Nix
39 lines
787 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, beautifulsoup4
|
|
, requests
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wikipedia";
|
|
version = "1.4.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2w+tGCn91EGxhSMG6YVjmCBNwHhtKZbdLgyLuOJhM7I=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
];
|
|
|
|
unittestFlagsArray = [
|
|
"tests/ '*test.py'"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Pythonic wrapper for the Wikipedia API";
|
|
homepage = "https://github.com/goldsmith/Wikipedia";
|
|
changelog = "https://github.com/goldsmith/Wikipedia/blob/master/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
};
|
|
}
|