evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / django-oauth-toolkit / default.nix
blob30007c812b3c87cfbdb24bc72c42b4b3877aaf83
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
7   # propagates
8   django,
9   jwcrypto,
10   requests,
11   oauthlib,
13   # tests
14   djangorestframework,
15   pytest-cov-stub,
16   pytest-django,
17   pytest-mock,
18   pytestCheckHook,
21 buildPythonPackage rec {
22   pname = "django-oauth-toolkit";
23   version = "3.0.1";
24   pyproject = true;
26   src = fetchFromGitHub {
27     owner = "jazzband";
28     repo = "django-oauth-toolkit";
29     rev = "refs/tags/${version}";
30     hash = "sha256-Ya0KlX+vtLXN2Fgk0Gv7KemJCUTwkaH+4GQA1ByUlBY=";
31   };
33   build-system = [ setuptools ];
35   dependencies = [
36     django
37     jwcrypto
38     oauthlib
39     requests
40   ];
42   preCheck = ''
43     export DJANGO_SETTINGS_MODULE=tests.settings
44   '';
46   # xdist is disabled right now because it can cause race conditions on high core machines
47   # https://github.com/jazzband/django-oauth-toolkit/issues/1300
48   nativeCheckInputs = [
49     djangorestframework
50     pytest-cov-stub
51     pytest-django
52     # pytest-xdist
53     pytest-mock
54     pytestCheckHook
55   ];
57   disabledTests = [
58     # Failed to get a valid response from authentication server. Status code: 404, Reason: Not Found.
59     "test_response_when_auth_server_response_return_404"
60   ];
62   meta = {
63     description = "OAuth2 goodies for the Djangonauts";
64     homepage = "https://github.com/jazzband/django-oauth-toolkit";
65     changelog = "https://github.com/jazzband/django-oauth-toolkit/django-filer/blob/${version}/CHANGELOG.md";
66     license = lib.licenses.bsd2;
67     maintainers = with lib.maintainers; [ mmai ];
68   };