python3Packages.microsoft-kiota-*: add passthru.updateScript and update (#433206)
This commit is contained in:
@@ -10,11 +10,12 @@
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
std-uritemplate,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "microsoft-kiota-abstractions";
|
||||
version = "1.9.3";
|
||||
version = "1.9.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -23,7 +24,7 @@ buildPythonPackage rec {
|
||||
owner = "microsoft";
|
||||
repo = "kiota-python";
|
||||
tag = "microsoft-kiota-abstractions-v${version}";
|
||||
hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
|
||||
hash = "sha256-h0sZhBIGZyhzYtCvLHRAn73HspgyOAKU3p4xSn+uXFU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/abstractions/";
|
||||
@@ -52,10 +53,14 @@ buildPythonPackage rec {
|
||||
# detects the wrong tag on the repo
|
||||
passthru.skipBulkUpdate = true;
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "microsoft-kiota-abstractions-v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Abstractions library for Kiota generated Python clients";
|
||||
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/abstractions/";
|
||||
changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-abstractions-${src.tag}";
|
||||
changelog = "https://github.com/microsoft/kiota-python/releases/tag/${src.tag}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
@@ -12,11 +12,12 @@
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "microsoft-kiota-authentication-azure";
|
||||
version = "1.9.3";
|
||||
version = "1.9.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -24,8 +25,8 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "microsoft";
|
||||
repo = "kiota-python";
|
||||
tag = "microsoft-kiota-serialization-text-v${version}";
|
||||
hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
|
||||
tag = "microsoft-kiota-authentication-azure-v${version}";
|
||||
hash = "sha256-h0sZhBIGZyhzYtCvLHRAn73HspgyOAKU3p4xSn+uXFU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/authentication/azure/";
|
||||
@@ -48,6 +49,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "kiota_authentication_azure" ];
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "microsoft-kiota-authentication-azure-v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kiota Azure authentication provider";
|
||||
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/authentication/azure";
|
||||
|
||||
@@ -12,11 +12,12 @@
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
urllib3,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "microsoft-kiota-http";
|
||||
version = "1.9.4";
|
||||
version = "1.9.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -24,8 +25,8 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "microsoft";
|
||||
repo = "kiota-python";
|
||||
tag = "microsoft-kiota-serialization-text-v${version}";
|
||||
hash = "sha256-59vuJc7Wb/6PsPA4taAFA2UK8bdz+raZ+NB4S8LahtM=";
|
||||
tag = "microsoft-kiota-http-v${version}";
|
||||
hash = "sha256-h0sZhBIGZyhzYtCvLHRAn73HspgyOAKU3p4xSn+uXFU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/http/httpx/";
|
||||
@@ -49,10 +50,14 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "kiota_http" ];
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "microsoft-kiota-http-v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "HTTP request adapter implementation for Kiota clients for Python";
|
||||
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/http/httpx";
|
||||
changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-http-${src.tag}";
|
||||
changelog = "https://github.com/microsoft/kiota-python/releases/tag/${src.tag}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "microsoft-kiota-serialization-form";
|
||||
version = "1.9.3";
|
||||
version = "1.9.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -22,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "microsoft";
|
||||
repo = "kiota-python";
|
||||
tag = "microsoft-kiota-serialization-form-v${version}";
|
||||
hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
|
||||
hash = "sha256-h0sZhBIGZyhzYtCvLHRAn73HspgyOAKU3p4xSn+uXFU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/serialization/form/";
|
||||
@@ -42,6 +43,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "kiota_serialization_form" ];
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "microsoft-kiota-serialization-form-v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Form serialization implementation for Kiota clients in Python";
|
||||
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/form";
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "microsoft-kiota-serialization-json";
|
||||
version = "1.9.3";
|
||||
version = "1.9.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -22,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "microsoft";
|
||||
repo = "kiota-python";
|
||||
tag = "microsoft-kiota-serialization-json-v${version}";
|
||||
hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
|
||||
hash = "sha256-h0sZhBIGZyhzYtCvLHRAn73HspgyOAKU3p4xSn+uXFU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/serialization/json/";
|
||||
@@ -42,6 +43,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "kiota_serialization_json" ];
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "microsoft-kiota-serialization-json-v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "JSON serialization implementation for Kiota clients in Python";
|
||||
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/json";
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "microsoft-kiota-serialization-multipart";
|
||||
version = "1.9.3";
|
||||
version = "1.9.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@@ -22,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "microsoft";
|
||||
repo = "kiota-python";
|
||||
tag = "microsoft-kiota-serialization-multipart-v${version}";
|
||||
hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
|
||||
hash = "sha256-h0sZhBIGZyhzYtCvLHRAn73HspgyOAKU3p4xSn+uXFU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/serialization/multipart/";
|
||||
@@ -40,6 +41,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "kiota_serialization_multipart" ];
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "microsoft-kiota-serialization-multipart-v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multipart serialization implementation for Kiota clients in Python";
|
||||
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/multipart";
|
||||
|
||||
@@ -9,11 +9,12 @@
|
||||
pytestCheckHook,
|
||||
python-dateutil,
|
||||
pythonOlder,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "microsoft-kiota-serialization-text";
|
||||
version = "1.9.3";
|
||||
version = "1.9.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -22,7 +23,7 @@ buildPythonPackage rec {
|
||||
owner = "microsoft";
|
||||
repo = "kiota-python";
|
||||
tag = "microsoft-kiota-serialization-text-v${version}";
|
||||
hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
|
||||
hash = "sha256-h0sZhBIGZyhzYtCvLHRAn73HspgyOAKU3p4xSn+uXFU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/serialization/text/";
|
||||
@@ -42,6 +43,10 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "kiota_serialization_text" ];
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "microsoft-kiota-serialization-text-v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Text serialization implementation for Kiota generated clients in Python";
|
||||
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/text";
|
||||
|
||||
Reference in New Issue
Block a user