mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
942 B
Nix
52 lines
942 B
Nix
{ 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|