nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.2 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 gtk-layer-shell, 6 gtk3, 7 gobject-introspection, 8 wrapGAppsHook3, 9 wlr-randr, 10}: 11 12python3Packages.buildPythonPackage rec { 13 pname = "nwg-wrapper"; 14 version = "0.1.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "nwg-piotr"; 19 repo = "nwg-wrapper"; 20 tag = "v${version}"; 21 sha256 = "sha256-GKDAdjO67aedCEFHKDukQ+oPMomTPwFE/CvJu112fus="; 22 }; 23 24 nativeBuildInputs = [ 25 gobject-introspection 26 wrapGAppsHook3 27 ]; 28 29 buildInputs = [ 30 gtk3 31 gtk-layer-shell 32 ]; 33 34 build-system = with python3Packages; [ setuptools ]; 35 36 dependencies = with python3Packages; [ 37 i3ipc 38 pygobject3 39 ]; 40 41 # No tests 42 doCheck = false; 43 44 preFixup = '' 45 makeWrapperArgs+=( 46 "''${gappsWrapperArgs[@]}" 47 --prefix PATH : "${lib.makeBinPath [ wlr-randr ]}" 48 ) 49 ''; 50 51 pythonImportsCheck = [ "nwg_wrapper" ]; 52 53 meta = { 54 description = "Wrapper to display a script output or a text file content on the desktop in sway or other wlroots-based compositors"; 55 mainProgram = "nwg-wrapper"; 56 homepage = "https://github.com/nwg-piotr/nwg-wrapper/"; 57 license = lib.licenses.mit; 58 maintainers = with lib.maintainers; [ artturin ]; 59 }; 60}