nixpkgs-suyu/pkgs/development/python-modules/mwxml/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

45 lines
820 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";
mainProgram = "mwxml";
homepage = "https://github.com/mediawiki-utilities/python-mwxml";
license = licenses.mit;
maintainers = with maintainers; [ GaetanLepage ];
};
}