1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
bitmath,
bpylist2,
click,
mako,
more-itertools,
objexplore,
packaging,
pathvalidate,
pip,
ptpython,
pytimeparse2,
pyyaml,
requests,
rich-theme-manager,
rich,
shortuuid,
strpdatetime,
tenacity,
textx,
toml,
wrapt,
wurlitzer,
xdg-base-dirs,
pytestCheckHook,
pytest-mock,
}:
buildPythonPackage rec {
pname = "osxphotos";
version = "0.68.6";
pyproject = true;
src = fetchFromGitHub {
owner = "RhetTbull";
repo = "osxphotos";
rev = "refs/tags/v${version}";
hash = "sha256-5cKxlfm4i743bJlS2HVPBO1Fbvz1c6wgkkG8Vle8Ajo=";
};
build-system = [ setuptools ];
dependencies = [
bitmath
bpylist2
click
mako
more-itertools
objexplore
packaging
pathvalidate
pip
ptpython
pytimeparse2
pyyaml
requests
rich-theme-manager
rich
shortuuid
strpdatetime
tenacity
textx
toml
wrapt
wurlitzer
xdg-base-dirs
];
pythonRelaxDeps = [
"mako"
"more-itertools"
"objexplore"
"textx"
];
pythonImportsCheck = [ "osxphotos" ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTestPaths = [ "tests/test_comments.py" ];
disabledTests = [
"test_iphoto_info"
"test_from_to_date_tz"
"test_function_url"
"test_get_local_tz"
"test_datetime_naive_to_local"
"test_from_to_date_tz"
"test_query_from_to_date_alt_location"
"test_query_function_url"
];
meta = {
description = "Export photos from Apple's macOS Photos app and query the Photos library database to access metadata about images";
homepage = "https://github.com/RhetTbull/osxphotos";
changelog = "https://github.com/RhetTbull/osxphotos/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
broken = stdenv.hostPlatform.isDarwin;
};
}
|