summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python3-saml
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2021-01-18 14:15:29 -0800
committerZhaofeng Li <hello@zhaofeng.li>2021-03-07 13:18:02 -0800
commit6bc385a122e11564ca1a27962dbb8084963d613c (patch)
tree4c806cbd6654e9b7f2892350704e4181e7e444d8 /pkgs/development/python-modules/python3-saml
parent64cfeeffd04e969fc70ada6ee25c585159b0b7bc (diff)
python3Packages.python3-saml: init at 1.10.1
Diffstat (limited to 'pkgs/development/python-modules/python3-saml')
-rw-r--r--pkgs/development/python-modules/python3-saml/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python3-saml/default.nix b/pkgs/development/python-modules/python3-saml/default.nix
new file mode 100644
index 000000000000..00774cc40f88
--- /dev/null
+++ b/pkgs/development/python-modules/python3-saml/default.nix
@@ -0,0 +1,40 @@
+{ lib, fetchurl, fetchFromGitHub, buildPythonPackage, isPy3k,
+isodate, lxml, xmlsec, freezegun }:
+
+buildPythonPackage rec {
+ pname = "python3-saml";
+ version = "1.10.1";
+ disabled = !isPy3k;
+
+ src = fetchFromGitHub {
+ owner = "onelogin";
+ repo = "python3-saml";
+ rev = "v${version}";
+ sha256 = "1yk02xq90bm7p6k091av6gapb5h2ccxzgrbm03sj2x8h0wff9s8k";
+ };
+
+ patches = [
+ # Remove the dependency on defusedxml
+ #
+ # This patch is already merged upstream and does not introduce any
+ # functionality changes.
+ (fetchurl {
+ url = "https://github.com/onelogin/python3-saml/commit/4b6c4b1f2ed3f6eab70ff4391e595b808ace168c.patch";
+ sha256 = "11gqn7ib2hmlx5wp4xhi375v5ajapwmj4lpw0y44bh5ww8cypvqy";
+ })
+ ];
+
+ 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 ];
+ };
+}