Merge pull request #182337 from tomfitzhenry/siglo

siglo: init at 0.9.9

authored by

Mario Rodas and committed by
GitHub
af5d850c 67d29750

+119
+70
pkgs/applications/misc/siglo/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , glib 5 + , meson 6 + , ninja 7 + , wrapGAppsHook 8 + , desktop-file-utils 9 + , gobject-introspection 10 + , gtk3 11 + , python3 12 + }: 13 + 14 + stdenv.mkDerivation rec { 15 + pname = "siglo"; 16 + version = "0.9.9"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "theironrobin"; 20 + repo = "siglo"; 21 + rev = "v${version}"; 22 + hash = "sha256-4jKsRpzuyHH31LXndC3Ua4TYcI0G0v9qqe0cbvLuCDA="; 23 + }; 24 + 25 + patches = [ 26 + ./siglo-no-user-install.patch 27 + ]; 28 + 29 + postPatch = '' 30 + chmod +x build-aux/meson/postinstall.py # patchShebangs requires an executable file 31 + patchShebangs build-aux/meson/postinstall.py 32 + ''; 33 + 34 + nativeBuildInputs = [ 35 + glib 36 + meson 37 + ninja 38 + wrapGAppsHook 39 + python3.pkgs.wrapPython 40 + python3 41 + desktop-file-utils 42 + gtk3 43 + ]; 44 + 45 + buildInputs = [ 46 + gtk3 47 + python3.pkgs.gatt 48 + gobject-introspection 49 + ]; 50 + 51 + pythonPath = with python3.pkgs; [ 52 + gatt 53 + pybluez 54 + requests 55 + ]; 56 + 57 + preFixup = '' 58 + buildPythonPath "$out $pythonPath" 59 + gappsWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH") 60 + ''; 61 + 62 + meta = with lib; { 63 + description = "GTK app to sync InfiniTime watch with PinePhone"; 64 + homepage = "https://github.com/theironrobin/siglo"; 65 + changelog = "https://github.com/theironrobin/siglo/tags/v${version}"; 66 + license = licenses.mpl20; 67 + maintainers = with maintainers; [ tomfitzhenry ]; 68 + platforms = platforms.linux; 69 + }; 70 + }
+13
pkgs/applications/misc/siglo/siglo-no-user-install.patch
··· 1 + diff --git a/data/meson.build b/data/meson.build 2 + index 62a00fe..5319974 100644 3 + --- a/data/meson.build 4 + +++ b/data/meson.build 5 + @@ -18,8 +18,6 @@ install_data(join_paths('icons', 'com.github.alexr4535.siglo.svg'), 6 + install_dir: join_paths(get_option('datadir'), 'icons') 7 + ) 8 + 9 + -install_data('siglo.service', install_dir: '/etc/systemd/user/') 10 + - 11 + appstream_file = i18n.merge_file( 12 + input: 'com.github.alexr4535.siglo.appdata.xml.in', 13 + output: 'com.github.alexr4535.siglo.appdata.xml',
+32
pkgs/development/python-modules/gatt/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , dbus-python 5 + , pygobject3 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "gatt"; 10 + version = "0.2.6"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "getsenic"; 14 + repo = "gatt-python"; 15 + rev = "${version}"; 16 + hash = "sha256-GMLqQ9ojQ649hbbJB+KiQoOhiTWweOgv6zaCDzhIB5A="; 17 + }; 18 + 19 + propagatedBuildInputs = [ 20 + dbus-python 21 + pygobject3 22 + ]; 23 + 24 + pythonImportsCheck = [ "gatt" ]; 25 + 26 + meta = with lib; { 27 + description = "Bluetooth (Generic Attribute Profile) GATT SDK for Python"; 28 + homepage = "https://github.com/getsenic/gatt-python/"; 29 + license = licenses.mit; 30 + maintainers = with maintainers; [ tomfitzhenry ]; 31 + }; 32 + }
+2
pkgs/top-level/all-packages.nix
··· 4447 4447 4448 4448 shisho = callPackage ../tools/security/shisho { }; 4449 4449 4450 + siglo = callPackage ../applications/misc/siglo { }; 4451 + 4450 4452 simg2img = callPackage ../tools/filesystems/simg2img { }; 4451 4453 4452 4454 snazy = callPackage ../development/tools/snazy { };
+2
pkgs/top-level/python-packages.nix
··· 3416 3416 3417 3417 garages-amsterdam = callPackage ../development/python-modules/garages-amsterdam { }; 3418 3418 3419 + gatt = callPackage ../development/python-modules/gatt { }; 3420 + 3419 3421 gattlib = callPackage ../development/python-modules/gattlib { 3420 3422 inherit (pkgs) bluez glib pkg-config; 3421 3423 };