nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 django, 7 social-auth-core, 8 pytest-django, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "social-auth-app-django"; 14 version = "5.7.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "python-social-auth"; 19 repo = "social-app-django"; 20 tag = version; 21 hash = "sha256-iR94psgqFeZEGcS/L/W66H8nCNNKKu+hxOUGC93N8Do="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 django 28 social-auth-core 29 ]; 30 31 pythonImportsCheck = [ "social_django" ]; 32 33 nativeCheckInputs = [ 34 pytest-django 35 pytestCheckHook 36 ]; 37 38 preCheck = '' 39 export DJANGO_SETTINGS_MODULE=tests.settings 40 ''; 41 42 meta = { 43 broken = lib.versionOlder django.version "5.1"; 44 description = "Module for social authentication/registration mechanism"; 45 homepage = "https://github.com/python-social-auth/social-app-django"; 46 changelog = "https://github.com/python-social-auth/social-app-django/blob/${src.tag}/CHANGELOG.md"; 47 license = lib.licenses.bsd3; 48 maintainers = [ ]; 49 }; 50}