biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / mwxml / default.nix
blob7b24ef4c8bb4e8050ba3dc602fd6f744bd0d1b51
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   fetchpatch2,
6   jsonschema,
7   mwcli,
8   mwtypes,
9   pytestCheckHook,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "mwxml";
15   version = "0.3.4";
16   pyproject = true;
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-ejf3RfdwcEp0Ge+96dORuHS5Bx28GSs7H4HD1LUnde4=";
21   };
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   ];
32   build-system = [ setuptools ];
34   dependencies = [
35     jsonschema
36     mwcli
37     mwtypes
38   ];
40   nativeCheckInputs = [ pytestCheckHook ];
42   pythonImportsCheck = [ "mwxml" ];
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   };