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