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