python3Packages.djangosaml2: init at 1.9.3
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
defusedxml,
|
||||
django,
|
||||
pysaml2,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "djangosaml2";
|
||||
version = "1.9.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "IdentityPython";
|
||||
repo = "djangosaml2";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-rbmEJuG2mgozpCFOXZUJFxv8v52IRQeaeAKfeUDACeU=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
django
|
||||
defusedxml
|
||||
pysaml2
|
||||
];
|
||||
|
||||
# Falsely complains that 'defusedxml>=0.4.1 not satisfied by version 0.8.0rc2'
|
||||
pythonRelaxDeps = [ "defusedxml" ];
|
||||
|
||||
pythonImportsCheck = [ "djangosaml2" ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
python tests/run_tests.py
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Django SAML2 Service Provider based on pySAML2";
|
||||
homepage = "https://github.com/IdentityPython/djangosaml2";
|
||||
changelog = "https://github.com/IdentityPython/djangosaml2/blob/v${version}/CHANGES";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ melvyn2 ];
|
||||
};
|
||||
}
|
||||
@@ -3512,6 +3512,8 @@ self: super: with self; {
|
||||
|
||||
django-reversion = callPackage ../development/python-modules/django-reversion { };
|
||||
|
||||
djangosaml2 = callPackage ../development/python-modules/djangosaml2 { };
|
||||
|
||||
django-sekizai = callPackage ../development/python-modules/django-sekizai { };
|
||||
|
||||
django-sesame = callPackage ../development/python-modules/django-sesame { };
|
||||
|
||||
Reference in New Issue
Block a user