1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "mac-alias";
10 version = "2.2.2";
11 format = "pyproject";
12
13 src = fetchPypi {
14 pname = "mac_alias";
15 inherit version;
16 hash = "sha256-yZxyjrUS6VXBHxpiA6D/qIg7JlSeiv5ogEAxql2oVrc=";
17 };
18
19 nativeBuildInputs = [ setuptools ];
20
21 # pypi package does not include tests;
22 # tests anyway require admin privileges to succeed
23 doCheck = false;
24 pythonImportsCheck = [ "mac_alias" ];
25
26 meta = with lib; {
27 homepage = "https://github.com/al45tair/mac_alias";
28 description = "Generate or read binary Alias and Bookmark records from Python code";
29 mainProgram = "mac_alias";
30 longDescription = ''
31 mac_alias lets you generate or read binary Alias and Bookmark records from Python code.
32
33 While it is written in pure Python, some OS X specific code is required
34 to generate a proper Alias or Bookmark record for a given file,
35 so this module currently is not portable to other platforms.
36 '';
37 license = licenses.mit;
38 maintainers = with maintainers; [ siriobalmelli ];
39 };
40}