1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mac_alias
5, pytestCheckHook
6, pythonOlder
7, setuptools
8}:
9
10buildPythonPackage rec {
11 pname = "ds-store";
12 version = "1.3.1";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "al45tair";
19 repo = "ds_store";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-45lmkE61uXVCBUMyVVzowTJoALY1m9JI68s7Yb0vCks=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 propagatedBuildInputs = [
29 mac_alias
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [
37 "ds_store"
38 ];
39
40 meta = with lib; {
41 homepage = "https://github.com/al45tair/ds_store";
42 description = "Manipulate Finder .DS_Store files from Python";
43 license = licenses.mit;
44 maintainers = with maintainers; [ prusnak ];
45 };
46}