Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-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.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-text-v${version}"; 25 hash = "sha256-FUfVkJbpD0X7U7DPzyoh+84Bk7C07iLT9dmbUeliFu8="; 26 }; 27 28 sourceRoot = "${src.name}/packages/serialization/text/"; 29 30 build-system = [ poetry-core ]; 31 32 dependencies = [ 33 microsoft-kiota-abstractions 34 python-dateutil 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-asyncio 39 pytest-mock 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "kiota_serialization_text" ]; 44 45 meta = with lib; { 46 description = "Text serialization implementation for Kiota generated clients in Python"; 47 homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/text"; 48 changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-serialization-text-${src.tag}"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}