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