2021-12-06 16:07:01 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k,
|
2021-03-09 03:18:52 +00:00
|
|
|
isodate, lxml, xmlsec, freezegun }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python3-saml";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.12.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onelogin";
|
|
|
|
repo = "python3-saml";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-VPUsjuo4FIes8ti0tkR0kT3J3RdUt1wtl4QEahVsc2c=";
|
2021-03-09 03:18:52 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|