Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-rest-auth / default.nix
blobeb14a6a3c316eecfb208f88e1766ed6b89970b5e
1 { lib
2  , buildPythonPackage
3 , fetchFromGitHub
4 , django
5 , django-allauth
6 , djangorestframework
7 , drf-jwt
8 , responses
9 , six
12 buildPythonPackage rec {
13   pname = "django-rest-auth";
14   version = "0.9.5";
15   format = "setuptools";
17   src = fetchFromGitHub {
18     owner = "Tivix";
19     repo = "django-rest-auth";
20     rev = version;
21     hash = "sha256-rCChUHv8sTEFErDCZnPN5b5XVtMJ7JNVZwBYF3d99mY=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace "djangorestframework-jwt" "drf-jwt"
27   '';
29   propagatedBuildInputs = [
30     django
31     djangorestframework
32     six
33   ];
35   nativeCheckInputs = [
36     django-allauth
37     drf-jwt
38     responses
39   ];
41   # tests are icnompatible with current django version
42   doCheck = false;
44   pythonImportsCheck = [ "rest_auth" ];
46   meta = with lib; {
47     description = "Django app that makes registration and authentication easy";
48     homepage = "https://github.com/Tivix/django-rest-auth";
49     license = licenses.mit;
50     maintainers = with maintainers; [ ];
51   };