summary refs log tree commit diff
path: root/pkgs/development/python-modules/ds-store/default.nix
blob: 5afa341942e989a1093ea084b05bd4632fa4611a (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, mac_alias
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ds_store";
  version = "1.3.0";

  src = fetchFromGitHub {
    owner = "al45tair";
    repo = pname;
    rev = "v${version}";
    sha256 = "1zmhnz110dvisydp5h6s0ry2v9qf4rgr60xhhlak0c66zpvlkkl0";
  };

  propagatedBuildInputs = [ mac_alias ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "ds_store" ];

  meta = with lib; {
    homepage = "https://github.com/al45tair/ds_store";
    description = "Manipulate Finder .DS_Store files from Python";
    license = licenses.mit;
    maintainers = with maintainers; [ prusnak ];
  };
}