forked from mirrors/nixpkgs
Merge pull request #173553 from SuperSandro2000/django-rest-auth
python310Packages.django-rest-auth: adopt, prepare to run tests
This commit is contained in:
commit
48a1bc92aa
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue