python3Packages.mwclient: modernise

This commit is contained in:
klea
2026-07-30 18:03:16 -04:00
committed by Michael Daniels
parent e8232cbe37
commit aa82506a57
@@ -4,6 +4,7 @@
fetchFromGitHub,
hatchling,
mock,
nix-update-script,
pytest-cov-stub,
pytestCheckHook,
requests,
@@ -12,7 +13,7 @@
six,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
version = "0.11.0-unstable-2026-05-15";
pname = "mwclient";
pyproject = true;
@@ -21,10 +22,10 @@ buildPythonPackage rec {
owner = "mwclient";
repo = "mwclient";
rev = "87113730b1f41d8160057621bfd90ad88428f602";
sha256 = "sha256-R2erz4oo6111haxlc9zhpgWhihFjMT2Mg/kdWERzcp4=";
hash = "sha256-R2erz4oo6111haxlc9zhpgWhihFjMT2Mg/kdWERzcp4=";
};
propagatedBuildInputs = [
dependencies = [
requests
requests-oauthlib
six
@@ -43,10 +44,14 @@ buildPythonPackage rec {
pythonImportsCheck = [ "mwclient" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = {
description = "Python client library to the MediaWiki API";
license = lib.licenses.mit;
homepage = "https://github.com/mwclient/mwclient";
maintainers = [ lib.maintainers.klea ];
};
}
})