1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 microsoft-kiota-abstractions,
7 pytest-asyncio,
8 pytest-mock,
9 pytestCheckHook,
10 python-dateutil,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "microsoft-kiota-serialization-text";
16 version = "1.0.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "microsoft";
23 repo = "kiota-serialization-text-python";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-jPuRfvqO4n5/PjSOS5NMCawaYRhXmrZtfg6LgYFCv7o=";
26 };
27
28 build-system = [ flit-core ];
29
30 dependencies = [
31 microsoft-kiota-abstractions
32 python-dateutil
33 ];
34
35 nativeCheckInputs = [
36 pytest-asyncio
37 pytest-mock
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "kiota_serialization_text" ];
42
43 meta = with lib; {
44 description = "Text serialization implementation for Kiota generated clients in Python";
45 homepage = "https://github.com/microsoft/kiota-serialization-text-python";
46 changelog = "https://github.com/microsoft/kiota-serialization-text-python/blob/${version}/CHANGELOG.md";
47 license = licenses.mit;
48 maintainers = with maintainers; [ fab ];
49 };
50}