mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
b02939ff0a
Diff: https://github.com/aaugustin/django-sesame/compare/refs/tags/3.2.1...3.2.2 Changelog: https://github.com/aaugustin/django-sesame/blob/3.2.2/docs/changelog.rst
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, django
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, python
|
|
, pythonOlder
|
|
, ua-parser
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-sesame";
|
|
version = "3.2.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aaugustin";
|
|
repo = "django-sesame";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8jbYhD/PfPnutJZonmdrqLIQdXiUHF12w0M9tuyyDz0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
django
|
|
ua-parser
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sesame"
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m django test --settings=tests.settings
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "URLs with authentication tokens for automatic login";
|
|
homepage = "https://github.com/aaugustin/django-sesame";
|
|
changelog = "https://github.com/aaugustin/django-sesame/blob/${version}/docs/changelog.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|