Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 59 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, stdenv, buildPythonPackage, fetchPypi,
# build-system setuptools,
# dependencies jsonschema, mwcli, mwtypes,
# tests pytestCheckHook, pythonAtLeast,}:
buildPythonPackage (finalAttrs: { pname = "mwxml"; version = "0.3.8"; pyproject = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-yiIyqX6pMem7JPhbVKSRBYwjwHRXY3LnESRq+scGFuA="; };
build-system = [ setuptools ];
dependencies = [ jsonschema mwcli mwtypes ];
pythonImportsCheck = [ "mwxml" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals (pythonAtLeast "3.14") [ # _pickle.PicklingError: Can't pickle local object <function map.<locals>.process_path at 0x7ffff580f480> "test_complex_error_handler" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # AttributeError: Can't get local object 'map.<locals>.process_path' "test_complex_error_handler" ];
meta = { description = "Set of utilities for processing MediaWiki XML dump data"; mainProgram = "mwxml"; homepage = "https://github.com/mediawiki-utilities/python-mwxml"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; };})