ttaenc: init at 3.4.1 (#238757)
[NixPkgs.git] / pkgs / development / python-modules / django-sesame / default.nix
blob5aad0ccdc321d17d1806ea5d7feee844548f4790
2   lib,
3   buildPythonPackage,
4   django,
5   fetchFromGitHub,
6   poetry-core,
7   python,
8   pythonOlder,
9   ua-parser,
12 buildPythonPackage rec {
13   pname = "django-sesame";
14   version = "3.2.2";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "aaugustin";
21     repo = "django-sesame";
22     rev = "refs/tags/${version}";
23     hash = "sha256-8jbYhD/PfPnutJZonmdrqLIQdXiUHF12w0M9tuyyDz0=";
24   };
26   nativeBuildInputs = [ poetry-core ];
28   nativeCheckInputs = [
29     django
30     ua-parser
31   ];
33   pythonImportsCheck = [ "sesame" ];
35   checkPhase = ''
36     runHook preCheck
38     ${python.interpreter} -m django test --settings=tests.settings
40     runHook postCheck
41   '';
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   };