depot/third_party/nixpkgs/pkgs/development/python-modules/python3-saml/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

46 lines
893 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, freezegun
, isodate
, lxml
, pythonOlder
, xmlsec
}:
buildPythonPackage rec {
pname = "python3-saml";
version = "1.15.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "onelogin";
repo = "python3-saml";
rev = "refs/tags/v${version}";
hash = "sha256-xPPR2z3h8RpoAROpKpu9ZoDxGq5Stm9wQVt4Stj/6fg=";
};
propagatedBuildInputs = [
isodate
lxml
xmlsec
];
nativeCheckInputs = [
freezegun
];
pythonImportsCheck = [
"onelogin.saml2"
];
meta = with lib; {
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 ];
};
}