Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 35 lines 898 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, alsaUtils, libnotify, which, loguru, pytest }: 2 3buildPythonPackage rec { 4 pname = "notify_py"; 5 version = "0.3.1"; 6 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "5ba696d18ffe1d7070f3d0a5b4923fee4d6c863de6843af105bec0ce9915ebad"; 12 }; 13 14 postPatch = '' 15 substituteInPlace setup.py \ 16 --replace "loguru==0.4.1" "loguru~=0.5.0" 17 ''; 18 19 propagatedBuildInputs = [ alsaUtils libnotify loguru which ]; 20 21 checkInputs = [ alsaUtils libnotify pytest which ]; 22 23 checkPhase = '' 24 pytest 25 ''; 26 27 pythonImportsCheck = [ "notifypy" ]; 28 29 meta = with lib; { 30 description = " Python Module for sending cross-platform desktop notifications on Windows, macOS, and Linux."; 31 homepage = "https://github.com/ms7m/notify-py/"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ austinbutler ]; 34 }; 35}