mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-07 22:03:37 +00:00
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
})
|