python3Packages.django-oauth-toolkit: 1.2.0 -> 1.6.1
Update the package and enable tests.
This commit is contained in:
parent
5274779f19
commit
31f20a69d9
@ -1,22 +1,58 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub
|
{ lib
|
||||||
, django, requests, oauthlib
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
|
||||||
|
# propagates
|
||||||
|
, django
|
||||||
|
, jwcrypto
|
||||||
|
, requests
|
||||||
|
, oauthlib
|
||||||
|
|
||||||
|
# tests
|
||||||
|
, djangorestframework
|
||||||
|
, pytest-django
|
||||||
|
, pytest-xdist
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-oauth-toolkit";
|
pname = "django-oauth-toolkit";
|
||||||
version = "1.2.0";
|
version = "1.6.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jazzband";
|
owner = "jazzband";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1zbksxrcxlqnapmlvx4rgvpqc4plgnq0xnf45cjwzwi1626zs8g6";
|
sha256 = "sha256-TOrFxQULwiuwpVFqRwRkfTW+GRudLNy6F/gIjUYjZhI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ django requests oauthlib ];
|
postPatch = ''
|
||||||
|
sed -i '/cov/d' tox.ini
|
||||||
|
'';
|
||||||
|
|
||||||
# django.core.exceptions.ImproperlyConfigured: Requested setting OAUTH2_PROVIDER, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings
|
propagatedBuildInputs = [
|
||||||
doCheck = false;
|
django
|
||||||
|
jwcrypto
|
||||||
|
oauthlib
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
djangorestframework
|
||||||
|
pytest-django
|
||||||
|
pytest-xdist
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Failed to get a valid response from authentication server. Status code: 404, Reason: Not Found.
|
||||||
|
"test_response_when_auth_server_response_return_404"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "OAuth2 goodies for the Djangonauts";
|
description = "OAuth2 goodies for the Djangonauts";
|
||||||
|
Loading…
Reference in New Issue
Block a user