nixpkgs/pkgs/development/python-modules/microsoft-kiota-serialization-multipart/default.nix
2024-04-03 22:45:52 +02:00

48 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
microsoft-kiota-abstractions,
microsoft-kiota-serialization-json,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "microsoft-kiota-serialization-multipart";
version = "0.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "microsoft";
repo = "kiota-serialization-multipart-python";
rev = "refs/tags/v${version}";
hash = "sha256-OGX6vX02928F1uCP8bF/q1Z5aDrdj29iQNOITzF2LQI=";
};
build-system = [ flit-core ];
dependencies = [ microsoft-kiota-abstractions ];
nativeCheckInputs = [
microsoft-kiota-serialization-json
pytest-asyncio
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "kiota_serialization_multipart" ];
meta = with lib; {
description = "Multipart serialization implementation for Kiota clients in Python";
homepage = "https://github.com/microsoft/kiota-serialization-multipart-python";
changelog = "https://github.com/microsoft/kiota-serialization-multipart-python/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}