diff --git a/pkgs/development/python-modules/python3-saml/default.nix b/pkgs/development/python-modules/python3-saml/default.nix index f1674627744e..18850603810a 100644 --- a/pkgs/development/python-modules/python3-saml/default.nix +++ b/pkgs/development/python-modules/python3-saml/default.nix @@ -1,33 +1,45 @@ -{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, -isodate, lxml, xmlsec, freezegun }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, freezegun +, isodate +, lxml +, pythonOlder +, xmlsec +}: buildPythonPackage rec { pname = "python3-saml"; version = "1.15.0"; - disabled = !isPy3k; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "onelogin"; repo = "python3-saml"; rev = "refs/tags/v${version}"; - sha256 = "sha256-xPPR2z3h8RpoAROpKpu9ZoDxGq5Stm9wQVt4Stj/6fg="; + hash = "sha256-xPPR2z3h8RpoAROpKpu9ZoDxGq5Stm9wQVt4Stj/6fg="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "lxml<4.7.1" "lxml<5" - ''; - propagatedBuildInputs = [ - isodate lxml xmlsec + isodate + lxml + xmlsec ]; - checkInputs = [ freezegun ]; - pythonImportsCheck = [ "onelogin.saml2" ]; + checkInputs = [ + freezegun + ]; + + pythonImportsCheck = [ + "onelogin.saml2" + ]; meta = with lib; { - description = "OneLogin's SAML Python Toolkit for Python 3"; + description = "OneLogin's SAML Python Toolkit"; homepage = "https://github.com/onelogin/python3-saml"; + changelog = "https://github.com/SAML-Toolkits/python3-saml/blob/v${version}/changelog.md"; license = licenses.mit; maintainers = with maintainers; [ zhaofengli ]; };