From 61ed97d9f9faa44190374865e431ae476b7384cf Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 04:06:16 -0500 Subject: [PATCH 01/14] lib.maintainers: add kamadorueda --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 2bcf0cccb3a7..97192f0c7ac0 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3560,6 +3560,16 @@ githubId = 87115; name = "Wael Nasreddine"; }; + kamadorueda = { + name = "Kevin Amado"; + email = "kamadorueda@gmail.com"; + github = "kamadorueda"; + githubId = 47480384; + keys = [{ + longkeyid = "rsa4096/0x04D0CEAF916A9A40"; + fingerprint = "2BE3 BAFD 793E A349 ED1F F00F 04D0 CEAF 916A 9A40"; + }]; + }; kamilchm = { email = "kamil.chm@gmail.com"; github = "kamilchm"; From 78d619c65e018f211a3196961c551bfd72b418af Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 03:57:12 -0500 Subject: [PATCH 02/14] pythonPackages.viewstate: init at 0.4.3 --- .../python-modules/viewstate/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/viewstate/default.nix diff --git a/pkgs/development/python-modules/viewstate/default.nix b/pkgs/development/python-modules/viewstate/default.nix new file mode 100644 index 000000000000..cd64dcc75643 --- /dev/null +++ b/pkgs/development/python-modules/viewstate/default.nix @@ -0,0 +1,36 @@ +{ buildPythonPackage +, fetchFromGitHub +, isPy3k +, lib +, pytest +}: + +buildPythonPackage rec { + pname = "viewstate"; + version = "0.4.3"; + disabled = !isPy3k; + + src = fetchFromGitHub { + owner = "yuvadm"; + repo = pname; + rev = "v${version}"; + sha256 = "15s0n1lhkz0zwi33waqkkjipal3f7s45rxsj1bw89xpr4dj87qx5"; + }; + + checkInputs = [ + pytest + ]; + + checkPhase = '' + pytest + ''; + + meta = { + description = ".NET viewstate decoder"; + homepage = "https://github.com/yuvadm/viewstate"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fa26248c68fc..8cf4be96c25f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6464,6 +6464,8 @@ in { versioneer = callPackage ../development/python-modules/versioneer { }; + viewstate = callPackage ../development/python-modules/viewstate { }; + vine = callPackage ../development/python-modules/vine { }; visitor = callPackage ../development/python-modules/visitor { }; From ea7fa57694c72c46ae18a68e8927ed1ab3b5ab52 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 03:57:38 -0500 Subject: [PATCH 03/14] pythonPackages.twofish: init at 0.3.0 --- .../python-modules/twofish/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/twofish/default.nix diff --git a/pkgs/development/python-modules/twofish/default.nix b/pkgs/development/python-modules/twofish/default.nix new file mode 100644 index 000000000000..1fe541b07290 --- /dev/null +++ b/pkgs/development/python-modules/twofish/default.nix @@ -0,0 +1,33 @@ +{ buildPythonPackage +, fetchPypi +, lib + +# pythonPackages +, javaobj-py3 +}: + +buildPythonPackage rec { + pname = "twofish"; + version = "0.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1yihp2n42amrxw0wk9f66llpb3w5kwhgkcdg9krkzcik1nsqp7dh"; + }; + + propagatedBuildInputs = [ + javaobj-py3 + ]; + + # No tests implemented + doCheck = false; + + meta = { + description = "Bindings for the Twofish implementation by Niels Ferguson"; + homepage = "https://github.com/keybase/python-twofish"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8cf4be96c25f..46914bf9c819 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6458,6 +6458,8 @@ in { twilio = callPackage ../development/python-modules/twilio { }; + twofish = callPackage ../development/python-modules/twofish { }; + uranium = callPackage ../development/python-modules/uranium { }; uuid = callPackage ../development/python-modules/uuid { }; From 0634484a53b548d4fc109a9f5e400e1d8fb2f55f Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 04:01:45 -0500 Subject: [PATCH 04/14] pythonPackages.javaobj-py3: init a 0.3.0 --- .../python-modules/javaobj-py3/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/javaobj-py3/default.nix diff --git a/pkgs/development/python-modules/javaobj-py3/default.nix b/pkgs/development/python-modules/javaobj-py3/default.nix new file mode 100644 index 000000000000..54656e1ea993 --- /dev/null +++ b/pkgs/development/python-modules/javaobj-py3/default.nix @@ -0,0 +1,26 @@ +{ buildPythonPackage +, fetchPypi +, lib +}: + +buildPythonPackage rec { + pname = "javaobj-py3"; + version = "0.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0j9532i7bnjd0v4a8c36mjj9rsdnbmckk65dh9sbmvnhy3j6jx55"; + }; + + # Tests assume network connectivity + doCheck = false; + + meta = { + description = "Module for serializing and de-serializing Java objects"; + homepage = "https://github.com/tcalmant/python-javaobj"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 46914bf9c819..8c18bd4ef190 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6387,6 +6387,8 @@ in { jaraco_stream = callPackage ../development/python-modules/jaraco_stream { }; + javaobj-py3 = callPackage ../development/python-modules/javaobj-py3 { }; + javaproperties = callPackage ../development/python-modules/javaproperties { }; tempora= callPackage ../development/python-modules/tempora { }; From 3af635e0438cf1bc84828002c946fee4a8a4572b Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 03:57:53 -0500 Subject: [PATCH 05/14] pythonPackages.requirements-detector: init at 0.6 --- .../requirements-detector/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/requirements-detector/default.nix diff --git a/pkgs/development/python-modules/requirements-detector/default.nix b/pkgs/development/python-modules/requirements-detector/default.nix new file mode 100644 index 000000000000..a0f312389f1a --- /dev/null +++ b/pkgs/development/python-modules/requirements-detector/default.nix @@ -0,0 +1,38 @@ +{ buildPythonPackage +, fetchFromGitHub +, isPy27 +, lib + +# pythonPackages +, pytest +}: + +buildPythonPackage rec { + pname = "requirements-detector"; + version = "0.6"; + disabled = isPy27; + + src = fetchFromGitHub { + owner = "yuvadm"; + repo = pname; + rev = version; + sha256 = "15s0n1lhkz0zwi33waqkkjipal3f7s45rxsj1bw89xpr4dj87qx5"; + }; + + checkInputs = [ + pytest + ]; + + checkPhase = '' + pytest + ''; + + meta = { + description = "Python tool to find and list requirements of a Python project"; + homepage = "https://github.com/landscapeio/requirements-detector"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8c18bd4ef190..ee4451cd850e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5099,6 +5099,8 @@ in { requests-http-signature = callPackage ../development/python-modules/requests-http-signature { }; + requirements-detector = callPackage ../development/python-modules/requirements-detector { }; + resampy = callPackage ../development/python-modules/resampy { }; restructuredtext_lint = callPackage ../development/python-modules/restructuredtext_lint { }; From 46a30458849d44e6bc1bd1e085dd62439f627bb2 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 03:58:31 -0500 Subject: [PATCH 06/14] pythonPackages.pysmb: init at 1.1.28 --- .../python-modules/pysmb/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/pysmb/default.nix diff --git a/pkgs/development/python-modules/pysmb/default.nix b/pkgs/development/python-modules/pysmb/default.nix new file mode 100644 index 000000000000..07de522f7962 --- /dev/null +++ b/pkgs/development/python-modules/pysmb/default.nix @@ -0,0 +1,36 @@ +{ buildPythonPackage +, fetchPypi +, lib + +# pythonPackages +, pyasn1 +}: + +buildPythonPackage rec { + pname = "pysmb"; + version = "1.1.28"; + + src = fetchPypi { + inherit pname version; + format = "setuptools"; + extension = "zip"; + sha256 = "0x44yq440c1j3xnl7qigz2fpfzhx68n9mbj7ps7rd0kj0plcmr2q"; + }; + + propagatedBuildInputs = [ + pyasn1 + ]; + + # Tests require Network Connectivity and a server up and running + # https://github.com/miketeo/pysmb/blob/master/python3/tests/README_1st.txt + doCheck = false; + + meta = { + description = "Experimental SMB/CIFS library written in Python to support file sharing between Windows and Linux machines"; + homepage = "https://miketeo.net/wp/index.php/projects/pysmb"; + license = lib.licenses.zlib; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ee4451cd850e..54a689c95da2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1155,6 +1155,8 @@ in { slurm = pkgs.slurm; }; + pysmb = callPackage ../development/python-modules/pysmb { }; + pysmf = callPackage ../development/python-modules/pysmf { }; pyspinel = callPackage ../development/python-modules/pyspinel {}; From 8b2b1d125db6fb1f0193005023721ef59f6a1fd1 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 03:58:53 -0500 Subject: [PATCH 07/14] pythonPackages.pyjks: init a 19.0.0 --- .../python-modules/pyjks/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/pyjks/default.nix diff --git a/pkgs/development/python-modules/pyjks/default.nix b/pkgs/development/python-modules/pyjks/default.nix new file mode 100644 index 000000000000..d9e2074fb28a --- /dev/null +++ b/pkgs/development/python-modules/pyjks/default.nix @@ -0,0 +1,37 @@ +{ buildPythonPackage +, fetchPypi +, lib + +# pythonPackages +, pyasn1-modules +, pycryptodomex +, twofish +}: + +buildPythonPackage rec { + pname = "pyjks"; + version = "19.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "06h1cybsdj2wi0jf7igbr722xfm87crqn4g7m3bgrpxwi41b9rcw"; + }; + + propagatedBuildInputs = [ + pyasn1-modules + pycryptodomex + twofish + ]; + + # Tests assume network connectivity + doCheck = false; + + meta = { + description = "Pure-Python Java Keystore (JKS) library"; + homepage = "https://github.com/kurtbrose/pyjks"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 54a689c95da2..3ebc2cc00e48 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2179,6 +2179,8 @@ in { pyjet = callPackage ../development/python-modules/pyjet {}; + pyjks = callPackage ../development/python-modules/pyjks {}; + PyLD = callPackage ../development/python-modules/PyLD { }; python-jose = callPackage ../development/python-modules/python-jose {}; From 4f8eba122ad4677884be3dd02e41e480d5849546 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 03:59:19 -0500 Subject: [PATCH 08/14] pythonPackages.oyaml: init at 0.9 --- .../python-modules/oyaml/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/oyaml/default.nix diff --git a/pkgs/development/python-modules/oyaml/default.nix b/pkgs/development/python-modules/oyaml/default.nix new file mode 100644 index 000000000000..e445086d0c76 --- /dev/null +++ b/pkgs/development/python-modules/oyaml/default.nix @@ -0,0 +1,41 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib + +# pythonPackages +, pytest +, pyyaml +}: + +buildPythonPackage rec { + pname = "oyaml"; + version = "0.9"; + + src = fetchFromGitHub { + owner = "wimglenn"; + repo = "oyaml"; + rev = "v${version}"; + sha256 = "13xjdym0p0jh9bvyjsbhi4yznlp68bamy3xi4w5wpcrzlcq6cfh9"; + }; + + propagatedBuildInputs = [ + pyyaml + ]; + + checkInputs = [ + pytest + ]; + + checkPhase = '' + pytest test_oyaml.py + ''; + + meta = { + description = "Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering"; + homepage = "https://github.com/wimglenn/oyaml"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3ebc2cc00e48..c6212ec6fb24 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2839,6 +2839,8 @@ in { oset = callPackage ../development/python-modules/oset { }; + oyaml = callPackage ../development/python-modules/oyaml { }; + pamela = callPackage ../development/python-modules/pamela { }; paperspace = callPackage ../development/python-modules/paperspace { }; From 8f08c1baee5f3521a500c45ebfe45f292f5da019 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 03:59:41 -0500 Subject: [PATCH 09/14] pythonPackages.names: init a 0.3.0 --- .../python-modules/names/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/names/default.nix diff --git a/pkgs/development/python-modules/names/default.nix b/pkgs/development/python-modules/names/default.nix new file mode 100644 index 000000000000..b65bb463475b --- /dev/null +++ b/pkgs/development/python-modules/names/default.nix @@ -0,0 +1,36 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib + +# pythonPackages +, pytest +}: + +buildPythonPackage rec { + pname = "names"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "treyhunner"; + repo = pname; + rev = version; + sha256 = "0jfn11bl05k3qkqw0f4vi2i2lhllxdrbb1732qiisdy9fbvv8611"; + }; + + checkInputs = [ + pytest + ]; + + checkPhase = '' + pytest + ''; + + meta = { + description = "Generate random names"; + homepage = "https://github.com/treyhunner/names"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c6212ec6fb24..6a15a82b43ce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4196,6 +4196,8 @@ in { nameparser = callPackage ../development/python-modules/nameparser { }; + names = callPackage ../development/python-modules/names { }; + nbconvert = callPackage ../development/python-modules/nbconvert { }; nbformat = callPackage ../development/python-modules/nbformat { }; From b4f81b96285783af49376d1c1a9c01cd4aadb3ef Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 04:02:50 -0500 Subject: [PATCH 10/14] pythonPackages.azure-identity: init at 1.1.0 --- .../python-modules/azure-identity/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/azure-identity/default.nix diff --git a/pkgs/development/python-modules/azure-identity/default.nix b/pkgs/development/python-modules/azure-identity/default.nix new file mode 100644 index 000000000000..e4b894eca64b --- /dev/null +++ b/pkgs/development/python-modules/azure-identity/default.nix @@ -0,0 +1,53 @@ +{ buildPythonPackage +, fetchPypi +, isPy38 +, lib + +# pythonPackages +, azure-common +, azure-core +, azure-nspkg +, cryptography +, mock +, msal +, msal-extensions +, msrest +, msrestazure +}: + +buildPythonPackage rec { + pname = "azure-identity"; + version = "1.1.0"; + disabled = isPy38; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "1xn4nwi4vly8n3mmphv0wbdg9k55gsgmk3fdwma8rm3m3c7593hc"; + }; + + propagatedBuildInputs = [ + azure-common + azure-core + azure-nspkg + cryptography + mock + msal + msal-extensions + msrest + msrestazure + ]; + + # Requires checkout from mono-repo and a mock account: + # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/tests.yml + doCheck = false; + + meta = with lib; { + description = "Microsoft Azure Identity Library for Python"; + homepage = "https://github.com/Azure/azure-sdk-for-python"; + license = licenses.mit; + maintainers = with maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6a15a82b43ce..a8e2f5c15fdd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -282,6 +282,8 @@ in { azure-graphrbac = callPackage ../development/python-modules/azure-graphrbac { }; + azure-identity = callPackage ../development/python-modules/azure-identity { }; + azure-keyvault = callPackage ../development/python-modules/azure-keyvault { }; azure-keyvault-keys = callPackage ../development/python-modules/azure-keyvault-keys { }; From 58717e6ccc36cc34a9a28348d366253afb3c8ac3 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 20:39:17 -0500 Subject: [PATCH 11/14] pythonPackages.azure-keyvault-nspkg: init at 1.0.0 --- .../azure-keyvault-nspkg/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/azure-keyvault-nspkg/default.nix diff --git a/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix b/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix new file mode 100644 index 000000000000..fd3f3c0284f9 --- /dev/null +++ b/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix @@ -0,0 +1,35 @@ +{ buildPythonPackage +, fetchPypi +, lib + +# pythonPackages +, azure-nspkg +}: + +buildPythonPackage rec { + pname = "azure-keyvault-nspkg"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "0hdnd6124hx7s16z1pssmq5m5mqqqz8s38ixl9aayv4wmf5bhs5c"; + }; + + propagatedBuildInputs = [ + azure-nspkg + ]; + + # Just a namespace package, no tests exist: + # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/tests.yml + doCheck = false; + + meta = with lib; { + description = "Microsoft Azure Key Vault Namespace Package [Internal]"; + homepage = "https://github.com/Azure/azure-sdk-for-python"; + license = licenses.mit; + maintainers = with maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a8e2f5c15fdd..85b56c2f88ec 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -288,6 +288,8 @@ in { azure-keyvault-keys = callPackage ../development/python-modules/azure-keyvault-keys { }; + azure-keyvault-nspkg = callPackage ../development/python-modules/azure-keyvault-nspkg { }; + azure-keyvault-secrets = callPackage ../development/python-modules/azure-keyvault-secrets { }; azure-loganalytics = callPackage ../development/python-modules/azure-loganalytics { }; @@ -1969,7 +1971,7 @@ in { certifi = callPackage ../development/python-modules/certifi { }; certipy = callPackage ../development/python-modules/certipy {}; - + characteristic = callPackage ../development/python-modules/characteristic { }; chart-studio = callPackage ../development/python-modules/chart-studio { }; From 37148a82b2541922094e451fa6819c17dcd75008 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 04:04:20 -0500 Subject: [PATCH 12/14] pythonPackages.msal: init at 1.0.0 --- .../python-modules/msal/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 5 ++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/msal/default.nix diff --git a/pkgs/development/python-modules/msal/default.nix b/pkgs/development/python-modules/msal/default.nix new file mode 100644 index 000000000000..6f2566c2c1c0 --- /dev/null +++ b/pkgs/development/python-modules/msal/default.nix @@ -0,0 +1,36 @@ +{ buildPythonPackage +, fetchPypi +, lib + +# pythonPackages +, pyjwt +, requests +}: + +buildPythonPackage rec { + pname = "msal"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0h33wayvakggr684spdyhiqvrwraavcbk3phmcbavb3zqxd3zgpc"; + }; + + propagatedBuildInputs = [ + pyjwt + requests + ]; + + # Tests assume Network Connectivity: + # https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73 + doCheck = false; + + meta = with lib; { + description = "The Microsoft Authentication Library (MSAL) for Python library enables your app to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect"; + homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python"; + license = licenses.mit; + maintainers = with maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 85b56c2f88ec..d3f2922b2879 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -837,9 +837,12 @@ in { mpi = pkgs.openmpi; }; - msrestazure = callPackage ../development/python-modules/msrestazure { }; + msal = callPackage ../development/python-modules/msal { }; + msrest = callPackage ../development/python-modules/msrest { }; + msrestazure = callPackage ../development/python-modules/msrestazure { }; + multiset = callPackage ../development/python-modules/multiset { }; mwclient = callPackage ../development/python-modules/mwclient { }; From 1da859459600614bc0982fdbdab1ce721e401177 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 04:05:17 -0500 Subject: [PATCH 13/14] pythonPackages.msal-extensions: init at 0.1.3 --- .../msal-extensions/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/msal-extensions/default.nix diff --git a/pkgs/development/python-modules/msal-extensions/default.nix b/pkgs/development/python-modules/msal-extensions/default.nix new file mode 100644 index 000000000000..c866382b1033 --- /dev/null +++ b/pkgs/development/python-modules/msal-extensions/default.nix @@ -0,0 +1,35 @@ +{ buildPythonPackage +, fetchPypi +, lib + +# pythonPackages +, msal +, portalocker +}: + +buildPythonPackage rec { + pname = "msal-extensions"; + version = "0.1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1p05cbfksnhijx1il7s24js2ydzgxbpiasf607qdpb5sljlp3qar"; + }; + + propagatedBuildInputs = [ + msal + portalocker + ]; + + # No tests found + doCheck = false; + + meta = with lib; { + description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python"; + homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python"; + license = licenses.mit; + maintainers = with maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d3f2922b2879..e7e195673080 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -839,6 +839,8 @@ in { msal = callPackage ../development/python-modules/msal { }; + msal-extensions = callPackage ../development/python-modules/msal-extensions { }; + msrest = callPackage ../development/python-modules/msrest { }; msrestazure = callPackage ../development/python-modules/msrestazure { }; From ff892ee1f063b4696a6a94983e0e986509e3cbf3 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 28 Dec 2019 04:05:35 -0500 Subject: [PATCH 14/14] pythonPackages.bandit: init at 1.6.2 --- .../python-modules/bandit/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/bandit/default.nix diff --git a/pkgs/development/python-modules/bandit/default.nix b/pkgs/development/python-modules/bandit/default.nix new file mode 100644 index 000000000000..64ef8ec53fa5 --- /dev/null +++ b/pkgs/development/python-modules/bandit/default.nix @@ -0,0 +1,44 @@ +{ buildPythonPackage +, fetchPypi +, lib +, isPy3k + +# pythonPackages +, GitPython +, pbr +, pyyaml +, six +, stevedore +}: + +buildPythonPackage rec { + pname = "bandit"; + version = "1.6.2"; + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "0rb034c99pyhb4a60z7f2kz40cjydhm8m9v2blaal1rmhlam7rs1"; + }; + + propagatedBuildInputs = [ + GitPython + pbr + pyyaml + six + stevedore + ]; + + # Framework is Tox, tox performs 'pip install' inside the virtual-env + # and this requires Network Connectivity + doCheck = false; + + meta = { + description = "Security oriented static analyser for python code"; + homepage = "https://bandit.readthedocs.io/en/latest/"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ + kamadorueda + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7e195673080..759d3ecf0e21 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1670,6 +1670,8 @@ in { babelfish = callPackage ../development/python-modules/babelfish {}; + bandit = callPackage ../development/python-modules/bandit {}; + basiciw = callPackage ../development/python-modules/basiciw { inherit (pkgs) gcc wirelesstools; };