depot/third_party/nixpkgs/pkgs/development/python-modules/mwxml/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
822 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 = "Set of utilities for processing MediaWiki XML dump data";
mainProgram = "mwxml";
homepage = "https://github.com/mediawiki-utilities/python-mwxml";
license = licenses.mit;
maintainers = with maintainers; [ GaetanLepage ];
};
}