Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 860 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, stdenv 6, packaging 7, importlib-resources 8, dbus-next 9}: 10 11buildPythonPackage rec { 12 pname = "desktop-notifier"; 13 version = "3.2.3"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "cf359450efc0944ac4db3106e50faa9d49dcef072307c3531e6af2c8a10cd523"; 18 }; 19 20 propagatedBuildInputs = [ 21 packaging 22 ] ++ lib.optionals (pythonOlder "3.9") [ 23 importlib-resources 24 ] ++ lib.optionals stdenv.isLinux [ 25 dbus-next 26 ]; 27 28 # no tests available, do the imports check instead 29 doCheck = false; 30 pythonImportsCheck = [ "desktop_notifier" ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/samschott/desktop-notifier"; 34 description = "A Python library for cross-platform desktop notifications"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ sfrijters ]; 37 }; 38}