504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
44 lines
793 B
Nix
44 lines
793 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jsonschema
|
|
, mwcli
|
|
, mwtypes
|
|
, nose
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mwxml";
|
|
version = "0.3.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-CEjfDPLik3GPVUMRrPRxW9Z59jn05Sy+R9ggZYnbHTE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
jsonschema
|
|
mwcli
|
|
mwtypes
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_page_with_discussion"
|
|
];
|
|
|
|
pythonImportsCheck = [ "mwxml" ];
|
|
|
|
meta = with lib; {
|
|
description = "A set of utilities for processing MediaWiki XML dump data";
|
|
homepage = "https://github.com/mediawiki-utilities/python-mwxml";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|