472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
microsoft-kiota-abstractions,
|
|
pendulum,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "microsoft-kiota-serialization-json";
|
|
version = "1.3.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "microsoft";
|
|
repo = "kiota-serialization-json-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-J+wX2vF1LZHq88RDhda6NDeYioZzAz2BxovVFz2xxfw=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [
|
|
microsoft-kiota-abstractions
|
|
pendulum
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "kiota_serialization_json" ];
|
|
|
|
disabledTests = [
|
|
# Test compare an output format
|
|
"test_parse_union_type_complex_property1"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "JSON serialization implementation for Kiota clients in Python";
|
|
homepage = "https://github.com/microsoft/kiota-serialization-json-python";
|
|
changelog = "https://github.com/microsoft/kiota-serialization-json-python/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|