2021-10-29 06:15:40 +02:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k,
|
2021-01-18 23:15:29 +01:00
|
|
|
isodate, lxml, xmlsec, freezegun }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python3-saml";
|
2021-10-29 06:15:40 +02:00
|
|
|
version = "1.12.0";
|
2021-01-18 23:15:29 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onelogin";
|
|
|
|
repo = "python3-saml";
|
|
|
|
rev = "v${version}";
|
2021-10-29 06:15:40 +02:00
|
|
|
sha256 = "sha256-VPUsjuo4FIes8ti0tkR0kT3J3RdUt1wtl4QEahVsc2c=";
|
2021-01-18 23:15:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
isodate lxml xmlsec
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ freezegun ];
|
|
|
|
pythonImportsCheck = [ "onelogin.saml2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OneLogin's SAML Python Toolkit for Python 3";
|
|
|
|
homepage = "https://github.com/onelogin/python3-saml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zhaofengli ];
|
|
|
|
};
|
|
|
|
}
|