Files
nixpkgs/pkgs/development/python-modules/microsoft-kiota-serialization-form/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
microsoft-kiota-abstractions,
pytest-asyncio,
pendulum,
pytest-mock,
pytestCheckHook,
pythonOlder,
gitUpdater,
}:
buildPythonPackage rec {
pname = "microsoft-kiota-serialization-form";
version = "1.9.7";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "microsoft";
repo = "kiota-python";
tag = "microsoft-kiota-serialization-form-v${version}";
hash = "sha256-ovmGka0YxhjPQYodHAMpcrqLMpXEqSTeky3n/rC7Ohs=";
};
sourceRoot = "${src.name}/packages/serialization/form/";
build-system = [ poetry-core ];
dependencies = [
microsoft-kiota-abstractions
pendulum
];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "kiota_serialization_form" ];
passthru.updateScript = gitUpdater {
rev-prefix = "microsoft-kiota-serialization-form-v";
};
meta = {
description = "Form serialization implementation for Kiota clients in Python";
homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/form";
changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-serialization-form-${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}