1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, stdenv 6, packaging 7, setuptools 8, dbus-next 9}: 10 11buildPythonPackage rec { 12 pname = "desktop-notifier"; 13 version = "3.5.6"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "SamSchott"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-txUWRCWLQ6jWrdEJ/D5+CsflNad5Onr/wLycENri1z8="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 packaging 31 ] ++ lib.optionals stdenv.isLinux [ 32 dbus-next 33 ]; 34 35 # no tests available, do the imports check instead 36 doCheck = false; 37 38 pythonImportsCheck = [ 39 "desktop_notifier" 40 ]; 41 42 meta = with lib; { 43 description = "Python library for cross-platform desktop notifications"; 44 homepage = "https://github.com/samschott/desktop-notifier"; 45 changelog = "https://github.com/samschott/desktop-notifier/releases/tag/v${version}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ sfrijters ]; 48 platforms = platforms.linux; 49 }; 50}