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