nixpkgs/pkgs/development/python-modules/msgraph-core/default.nix
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

61 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
python-dotenv,
fetchFromGitHub,
setuptools,
httpx,
microsoft-kiota-abstractions,
microsoft-kiota-authentication-azure,
microsoft-kiota-http,
microsoft-kiota-serialization-json,
azure-identity,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "msgraph-core";
version = "1.3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "microsoftgraph";
repo = "msgraph-sdk-python-core";
tag = "v${version}";
hash = "sha256-6M1C2Y0jYec/yKjigtbaaZiEL23csQAFtuUVMTlaiXk=";
};
build-system = [ setuptools ];
dependencies = [
httpx
microsoft-kiota-abstractions
microsoft-kiota-authentication-azure
microsoft-kiota-http
]
++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
azure-identity
microsoft-kiota-serialization-json
pytestCheckHook
python-dotenv
responses
];
pythonImportsCheck = [ "msgraph_core" ];
disabledTestPaths = [
# client_id should be the id of a Microsoft Entra application
"tests/tasks/test_page_iterator.py"
];
meta = {
description = "Core component of the Microsoft Graph Python SDK";
homepage = "https://github.com/microsoftgraph/msgraph-sdk-python-core";
changelog = "https://github.com/microsoftgraph/msgraph-sdk-python-core/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}