2018-01-20 13:33:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-02-25 14:13:13 +00:00
|
|
|
, fetchPypi
|
|
|
|
, oauthlib
|
2018-01-20 13:33:21 +00:00
|
|
|
, pyjwt
|
2022-02-25 14:13:13 +00:00
|
|
|
, pythonOlder
|
2018-01-20 13:33:21 +00:00
|
|
|
, requests
|
2022-02-25 14:13:13 +00:00
|
|
|
, requests-oauthlib
|
|
|
|
, six
|
2018-01-20 13:33:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mwoauth";
|
2022-05-25 05:29:16 +00:00
|
|
|
version = "0.3.8";
|
2022-02-25 14:13:13 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-01-20 13:33:21 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-25 05:29:16 +00:00
|
|
|
hash = "sha256-CNr07auqD5WoRfmOVwfecxaoODqWJfIK52iwNZkcNqw=";
|
2018-01-20 13:33:21 +00:00
|
|
|
};
|
|
|
|
|
2021-05-06 08:20:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
oauthlib
|
|
|
|
pyjwt
|
|
|
|
requests
|
2022-02-25 14:13:13 +00:00
|
|
|
requests-oauthlib
|
2021-05-06 08:20:55 +00:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
# PyPI source has no tests included
|
|
|
|
# https://github.com/mediawiki-utilities/python-mwoauth/issues/44
|
2018-01-20 13:33:21 +00:00
|
|
|
doCheck = false;
|
2020-08-25 02:07:09 +00:00
|
|
|
|
2022-02-25 14:13:13 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mwoauth"
|
|
|
|
];
|
2018-01-20 13:33:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-05-06 08:20:55 +00:00
|
|
|
description = "Python library to perform OAuth handshakes with a MediaWiki installation";
|
|
|
|
homepage = "https://github.com/mediawiki-utilities/python-mwoauth";
|
2018-01-20 13:33:21 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|