depot/third_party/nixpkgs/pkgs/development/python-modules/social-auth-app-django/default.nix

35 lines
839 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, social-auth-core, django, python }:
buildPythonPackage rec {
pname = "social-auth-app-django";
version = "5.1.0";
src = fetchFromGitHub {
owner = "python-social-auth";
repo = "social-app-django";
rev = "refs/tags/${version}";
hash = "sha256-QZZSwPyQKtcKe1Dij4MjRnKGudg6A6cmS4FGb2F1goY=";
};
propagatedBuildInputs = [
social-auth-core
];
pythonImportsCheck = [ "social_django" ];
nativeCheckInputs = [
django
];
checkPhase = ''
${python.interpreter} -m django test --settings="tests.settings"
'';
meta = with lib; {
homepage = "https://github.com/python-social-auth/social-app-django";
description = "Python Social Auth - Application - Django";
license = licenses.bsd3;
maintainers = with maintainers; [ n0emis ];
};
}