nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 63 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# propagates 6, django 7, jwcrypto 8, requests 9, oauthlib 10 11# tests 12, djangorestframework 13, pytest-django 14, pytest-xdist 15, pytest-mock 16, pytestCheckHook 17}: 18 19buildPythonPackage rec { 20 pname = "django-oauth-toolkit"; 21 version = "1.7.0"; 22 format = "setuptools"; 23 24 src = fetchFromGitHub { 25 owner = "jazzband"; 26 repo = pname; 27 rev = version; 28 sha256 = "0rp7pjif54yvdxfxn0pnf8ha3fjxspnx1ijyr1f8npwk2x5vnvhb"; 29 }; 30 31 postPatch = '' 32 sed -i '/cov/d' tox.ini 33 ''; 34 35 propagatedBuildInputs = [ 36 django 37 jwcrypto 38 oauthlib 39 requests 40 ]; 41 42 DJANGO_SETTINGS_MODULE = "tests.settings"; 43 44 checkInputs = [ 45 djangorestframework 46 pytest-django 47 pytest-xdist 48 pytest-mock 49 pytestCheckHook 50 ]; 51 52 disabledTests = [ 53 # Failed to get a valid response from authentication server. Status code: 404, Reason: Not Found. 54 "test_response_when_auth_server_response_return_404" 55 ]; 56 57 meta = with lib; { 58 description = "OAuth2 goodies for the Djangonauts"; 59 homepage = "https://github.com/jazzband/django-oauth-toolkit"; 60 license = licenses.bsd2; 61 maintainers = with maintainers; [ mmai ]; 62 }; 63}