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