1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
42 lines
802 B
Nix
42 lines
802 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
oauthlib,
|
|
pyjwt,
|
|
requests,
|
|
requests-oauthlib,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mwoauth";
|
|
version = "0.4.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-IuNAPnSOcBRvjszBQw/lQsn5xP9nfv9CSlLmRPbY98U=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
oauthlib
|
|
pyjwt
|
|
requests
|
|
requests-oauthlib
|
|
six
|
|
];
|
|
|
|
# PyPI source has no tests included
|
|
# https://github.com/mediawiki-utilities/python-mwoauth/issues/44
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "mwoauth" ];
|
|
|
|
meta = {
|
|
description = "Python library to perform OAuth handshakes with a MediaWiki installation";
|
|
homepage = "https://github.com/mediawiki-utilities/python-mwoauth";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|