nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 microsoft-kiota-abstractions,
7 pendulum,
8 pytest-asyncio,
9 pytest-mock,
10 pytestCheckHook,
11 gitUpdater,
12}:
13
14buildPythonPackage rec {
15 pname = "microsoft-kiota-serialization-json";
16 version = "1.9.8";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "microsoft";
21 repo = "kiota-python";
22 tag = "microsoft-kiota-serialization-json-v${version}";
23 hash = "sha256-05/I06p3zBc/Kb7H8dMEbUxFr0dOXSSBuIyEGZ4twhA=";
24 };
25
26 sourceRoot = "${src.name}/packages/serialization/json/";
27
28 build-system = [ poetry-core ];
29
30 dependencies = [
31 microsoft-kiota-abstractions
32 pendulum
33 ];
34
35 nativeCheckInputs = [
36 pytest-asyncio
37 pytest-mock
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "kiota_serialization_json" ];
42
43 passthru.updateScript = gitUpdater {
44 rev-prefix = "microsoft-kiota-serialization-json-v";
45 };
46
47 meta = {
48 description = "JSON serialization implementation for Kiota clients in Python";
49 homepage = "https://github.com/microsoft/kiota-python/tree/main/packages/serialization/json";
50 changelog = "https://github.com/microsoft/kiota-python/releases/tag/microsoft-kiota-serialization-json-${src.tag}";
51 license = lib.licenses.mit;
52 maintainers = with lib.maintainers; [ fab ];
53 };
54}