1{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, 2isodate, lxml, xmlsec, freezegun }: 3 4buildPythonPackage rec { 5 pname = "python3-saml"; 6 version = "1.14.0"; 7 disabled = !isPy3k; 8 9 src = fetchFromGitHub { 10 owner = "onelogin"; 11 repo = "python3-saml"; 12 rev = "v${version}"; 13 sha256 = "sha256-TAfVXh1fSKhNn/lsi7elq4wFyKCxCtCYUTrnH3ytBTw="; 14 }; 15 16 postPatch = '' 17 substituteInPlace setup.py \ 18 --replace "lxml<4.7.1" "lxml<5" 19 ''; 20 21 propagatedBuildInputs = [ 22 isodate lxml xmlsec 23 ]; 24 25 checkInputs = [ freezegun ]; 26 pythonImportsCheck = [ "onelogin.saml2" ]; 27 28 meta = with lib; { 29 description = "OneLogin's SAML Python Toolkit for Python 3"; 30 homepage = "https://github.com/onelogin/python3-saml"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ zhaofengli ]; 33 }; 34}