1{ 2 lib, 3 buildPythonPackage, 4 django, 5 fetchFromGitHub, 6 poetry-core, 7 python, 8 pythonOlder, 9 ua-parser, 10}: 11 12buildPythonPackage rec { 13 pname = "django-sesame"; 14 version = "3.2.3"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "aaugustin"; 21 repo = "django-sesame"; 22 tag = version; 23 hash = "sha256-JpbmcV5hAZkW15cizsAJhmTda4xtML0EY/PJdVSInUs="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 nativeCheckInputs = [ 29 django 30 ua-parser 31 ]; 32 33 pythonImportsCheck = [ "sesame" ]; 34 35 checkPhase = '' 36 runHook preCheck 37 38 ${python.interpreter} -m django test --settings=tests.settings 39 40 runHook postCheck 41 ''; 42 43 meta = with lib; { 44 description = "URLs with authentication tokens for automatic login"; 45 homepage = "https://github.com/aaugustin/django-sesame"; 46 changelog = "https://github.com/aaugustin/django-sesame/blob/${version}/docs/changelog.rst"; 47 license = licenses.bsd3; 48 }; 49}