nixpkgs/pkgs/development/python-modules/mwoauth/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
898 B
Nix
Raw Normal View History

2018-01-20 13:33:21 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, oauthlib
2018-01-20 13:33:21 +00:00
, pyjwt
, pythonOlder
2018-01-20 13:33:21 +00:00
, requests
, requests-oauthlib
, six
2018-01-20 13:33:21 +00:00
}:
buildPythonPackage rec {
pname = "mwoauth";
version = "0.3.8";
format = "setuptools";
disabled = pythonOlder "3.7";
2018-01-20 13:33:21 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-CNr07auqD5WoRfmOVwfecxaoODqWJfIK52iwNZkcNqw=";
2018-01-20 13:33:21 +00:00
};
2021-05-06 08:20:55 +00:00
propagatedBuildInputs = [
oauthlib
pyjwt
requests
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
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 ];
};
}