at master 881 B view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 python-dateutil, 7 pkgs, 8 which, 9}: 10 11buildPythonPackage rec { 12 version = "2.0.3"; 13 pname = "pync"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "38b9e61735a3161f9211a5773c5f5ea698f36af4ff7f77fa03e8d1ff0caa117f"; 19 }; 20 21 nativeCheckInputs = [ which ]; 22 propagatedBuildInputs = [ python-dateutil ]; 23 24 preInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 25 sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.terminal-notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py 26 ''; 27 28 meta = with lib; { 29 description = "Python Wrapper for Mac OS 10.8 Notification Center"; 30 homepage = "https://pypi.python.org/pypi/pync"; 31 license = licenses.mit; 32 platforms = platforms.darwin; 33 maintainers = with maintainers; [ lovek323 ]; 34 }; 35}