fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
36 lines
783 B
Nix
36 lines
783 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 ];
|
|
};
|
|
}
|