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";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.14.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "onelogin";
|
|
|
|
repo = "python3-saml";
|
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-TAfVXh1fSKhNn/lsi7elq4wFyKCxCtCYUTrnH3ytBTw=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "lxml<4.7.1" "lxml<5"
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|