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