mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
55 lines
950 B
Nix
55 lines
950 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-oauthlib
|
|
, responses
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.10.1";
|
|
pname = "mwclient";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mwclient";
|
|
repo = "mwclient";
|
|
rev = "v${version}";
|
|
sha256 = "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
requests-oauthlib
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace " --cov mwclient test" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"mwclient"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python client library to the MediaWiki API";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/mwclient/mwclient";
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|