depot/third_party/nixpkgs/pkgs/development/python-modules/wikipedia/default.nix

37 lines
783 B
Nix
Raw Normal View History

{
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 ];
};
}