Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 51 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch2, 6 jsonschema, 7 mwcli, 8 mwtypes, 9 pytestCheckHook, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "mwxml"; 15 version = "0.3.4"; 16 pyproject = true; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-ejf3RfdwcEp0Ge+96dORuHS5Bx28GSs7H4HD1LUnde4="; 21 }; 22 23 patches = [ 24 # https://github.com/mediawiki-utilities/python-mwxml/pull/21 25 (fetchpatch2 { 26 name = "nose-to-pytest.patch"; 27 url = "https://github.com/mediawiki-utilities/python-mwxml/compare/2b477be6aa9794064d03b5be38c7759d1570488b...71bbfd2b309e0720a34a4e783b71169aebc571ef.patch"; 28 hash = "sha256-4XxNvda1Dj+kFbD9t9gzucrMjdfXcoqYlvecXO2B2R0="; 29 }) 30 ]; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 jsonschema 36 mwcli 37 mwtypes 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "mwxml" ]; 43 44 meta = { 45 description = "Set of utilities for processing MediaWiki XML dump data"; 46 mainProgram = "mwxml"; 47 homepage = "https://github.com/mediawiki-utilities/python-mwxml"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ GaetanLepage ]; 50 }; 51}