depot/third_party/nixpkgs/pkgs/development/python-modules/microsoft-kiota-serialization-form/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

50 lines
1.1 KiB
Nix

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