diff options
Diffstat (limited to 'pkgs/development/python-modules/msgraph-core/default.nix')
-rw-r--r-- | pkgs/development/python-modules/msgraph-core/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/msgraph-core/default.nix b/pkgs/development/python-modules/msgraph-core/default.nix new file mode 100644 index 00000000000..22e18e5975f --- /dev/null +++ b/pkgs/development/python-modules/msgraph-core/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, flit-core +, requests +, pytestCheckHook +, responses +}: + +buildPythonPackage rec { + pname = "msgraph-core"; + version = "0.2.2"; + + disabled = pythonOlder "3.5"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "microsoftgraph"; + repo = "msgraph-sdk-python-core"; + rev = "v${version}"; + hash = "sha256-eRRlG3GJX3WeKTNJVWgNTTHY56qiUGOlxtvEZ2xObLA="; + }; + + nativeBuildInputs = [ + flit-core + ]; + + propagatedBuildInputs = [ + requests + ]; + + checkInputs = [ + pytestCheckHook + responses + ]; + + disabledTestPaths = [ + "tests/integration" + ]; + + pythonImportsCheck = [ "msgraph.core" ]; + + meta = { + description = "Core component of the Microsoft Graph Python SDK"; + homepage = "https://github.com/microsoftgraph/msgraph-sdk-python-core"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} |