python310Packages.django-rest-auth: adopt, prepare to run tests

This commit is contained in:
Sandro Jäckel 2022-05-19 02:19:04 +02:00
parent 7c035dbb75
commit 11820f11df
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,29 +1,51 @@
{ lib,
fetchPypi,
django,
djangorestframework,
six,
buildPythonPackage
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, django-allauth
, djangorestframework
, drf-jwt
, responses
, six
}:
buildPythonPackage rec {
pname = "django-rest-auth";
version = "0.9.5";
src = fetchPypi {
inherit pname version;
sha256 = "f11e12175dafeed772f50d740d22caeab27e99a3caca24ec65e66a8d6de16571";
src = fetchFromGitHub {
owner = "Tivix";
repo = "django-rest-auth";
rev = version;
sha256 = "sha256-rCChUHv8sTEFErDCZnPN5b5XVtMJ7JNVZwBYF3d99mY=";
};
propagatedBuildInputs = [ django djangorestframework six ];
postPatch = ''
substituteInPlace setup.py \
--replace "djangorestframework-jwt" "drf-jwt"
'';
# pypi release does not include tests
propagatedBuildInputs = [
django
djangorestframework
six
];
checkInputs = [
django-allauth
drf-jwt
responses
];
# tests are icnompatible with current django version
doCheck = false;
pythonImportsCheck = [ "rest_auth" ];
meta = with lib; {
description = "Django app that makes registration and authentication easy";
homepage = "https://github.com/Tivix/django-rest-auth";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}