at master 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 jsonschema, 12 mwcli, 13 mwtypes, 14 15 # tests 16 pytestCheckHook, 17}: 18 19buildPythonPackage rec { 20 pname = "mwxml"; 21 version = "0.3.6"; 22 pyproject = true; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-WlMYHTAhUq0D7FE/8Yaongx+H8xQx4MwRSoIcsqmOTU="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 jsonschema 33 mwcli 34 mwtypes 35 ]; 36 37 pythonImportsCheck = [ "mwxml" ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ 42 # AttributeError: Can't get local object 'map.<locals>.process_path' 43 "test_complex_error_handler" 44 ]; 45 46 meta = { 47 description = "Set of utilities for processing MediaWiki XML dump data"; 48 mainProgram = "mwxml"; 49 homepage = "https://github.com/mediawiki-utilities/python-mwxml"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ GaetanLepage ]; 52 }; 53}