Files
nixpkgs/pkgs/development/python-modules/msal/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

44 lines
1.2 KiB
Nix

{
lib,
cryptography,
buildPythonPackage,
fetchPypi,
pyjwt,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "msal";
version = "1.33.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-g2rYD6o+JafXEBXJkM5h9wSocyix5zvLsGI6GMvxdRA=";
};
build-system = [ setuptools ];
dependencies = [
cryptography
pyjwt
requests
]
++ pyjwt.optional-dependencies.crypto;
# Tests assume Network Connectivity:
# https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73
doCheck = false;
pythonImportsCheck = [ "msal" ];
meta = {
description = "Library 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";
changelog = "https://github.com/AzureAD/microsoft-authentication-library-for-python/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kamadorueda ];
};
}