1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 google-api-python-client,
6 google-auth,
7 lib,
8 mashumaro,
9 pytest-aiohttp,
10 pytestCheckHook,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "google-photos-library-api";
16 version = "0.12.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "allenporter";
21 repo = "python-google-photos-library-api";
22 tag = version;
23 hash = "sha256-xSwUzVwC7RPpmC9M1x/WYIaoiUlcF2h2fwiP6FYA6sw=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 aiohttp
30 google-api-python-client
31 google-auth
32 mashumaro
33 ];
34
35 pythonImportsCheck = [ "google_photos_library_api" ];
36
37 nativeCheckInputs = [
38 pytest-aiohttp
39 pytestCheckHook
40 ];
41
42 __darwinAllowLocalNetworking = true;
43
44 meta = {
45 changelog = "https://github.com/allenporter/python-google-photos-library-api/releases/tag/${version}";
46 description = "Python client library for Google Photos Library API";
47 homepage = "https://github.com/allenporter/python-google-photos-library-api";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ dotlambda ];
50 };
51}