1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 microsoft-kiota-abstractions,
7 pytest-asyncio,
8 pendulum,
9 pytest-mock,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "microsoft-kiota-serialization-form";
16 version = "1.9.3";
17 pyproject = true;
18
19 disabled = pythonOlder "3.9";
20
21 src = fetchFromGitHub {
22 owner = "microsoft";
23 repo = "kiota-python";
24 tag = "microsoft-kiota-serialization-form-v${version}";
25 hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8=";
26 };
27
28 sourceRoot = "${src.name}/packages/serialization/form/";
29
30 build-system = [ poetry-core ];
31
32 dependencies = [
33 microsoft-kiota-abstractions
34 pendulum
35 ];
36
37 nativeCheckInputs = [
38 pytest-asyncio
39 pytest-mock
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "kiota_serialization_form" ];
44
45 meta = with lib; {
46 description = "Form serialization implementation for Kiota clients in Python";
47 homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/form";
48 changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-serialization-form-${src.tag}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ fab ];
51 };
52}