python3Packages.wikipedia: modernize

This commit is contained in:
Harinn
2026-06-15 20:43:48 +07:00
parent b5232e1402
commit c553f34456
@@ -8,13 +8,15 @@
unittestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "wikipedia";
version = "1.4.0";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-2w+tGCn91EGxhSMG6YVjmCBNwHhtKZbdLgyLuOJhM7I=";
};
@@ -29,6 +31,8 @@ buildPythonPackage rec {
unittestFlagsArray = [ "tests/ '*test.py'" ];
pythonImportsCheck = [ "wikipedia" ];
meta = {
description = "Pythonic wrapper for the Wikipedia API";
homepage = "https://github.com/goldsmith/Wikipedia";
@@ -36,4 +40,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}
})