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