depot/third_party/nixpkgs/pkgs/development/python-modules/python3-saml/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

29 lines
728 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, isPy3k,
isodate, lxml, xmlsec, freezegun }:
buildPythonPackage rec {
pname = "python3-saml";
version = "1.14.0";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "onelogin";
repo = "python3-saml";
rev = "v${version}";
sha256 = "sha256-TAfVXh1fSKhNn/lsi7elq4wFyKCxCtCYUTrnH3ytBTw=";
};
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 ];
};
}