nixpkgs/pkgs/development/python-modules/wikipedia/default.nix
2023-05-15 21:54:00 +09:00

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