blob: 0a1b48894f289ed98c38cf8d5adfa048c5781845 (
plain)
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
|
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pyobjc-core,
pyobjc-framework-Cocoa,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "utitools";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "RhetTbull";
repo = "utitools";
tag = "v${finalAttrs.version}";
hash = "sha256-oI+a+sc9+qi7aFP0dLINAQekib/9pZm10A5jhVIHWvo=";
};
build-system = [ flit-core ];
dependencies = lib.optionals stdenv.hostPlatform.isDarwin [
pyobjc-core
pyobjc-framework-Cocoa
];
pythonImportsCheck = [ "utitools" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Utilities for working with Uniform Type Identifiers";
homepage = "https://github.com/RhetTbull/utitools";
changelog = "https://github.com/RhetTbull/osxphotos/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
})
|