mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
cobang: init at 0.9.6
This commit is contained in:
parent
0d6e095755
commit
834e7e8b73
@ -0,0 +1,31 @@
|
|||||||
|
From 324a267b0e5505c9124874581bc48fb174fb2542 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "P. R. d. O" <d.ol.rod@tutanota.com>
|
||||||
|
Date: Fri, 4 Mar 2022 07:03:17 -0600
|
||||||
|
Subject: [PATCH] Pillow update
|
||||||
|
|
||||||
|
---
|
||||||
|
pyproject.toml | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/pyproject.toml b/pyproject.toml
|
||||||
|
index 5dc25e0..b3ba397 100644
|
||||||
|
--- a/pyproject.toml
|
||||||
|
+++ b/pyproject.toml
|
||||||
|
@@ -11,7 +11,7 @@ readme = "README.rst"
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = "^3.7"
|
||||||
|
logbook = "^1.5.3"
|
||||||
|
-Pillow = "^8.2.0"
|
||||||
|
+Pillow = "^9.0.0"
|
||||||
|
requests = "^2.24.0"
|
||||||
|
kiss-headers = "^2.2.3"
|
||||||
|
single-version = "^1.5.1"
|
||||||
|
@@ -33,4 +33,4 @@ skip-string-normalization = true
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry>=0.12"]
|
||||||
|
-build-backend = "poetry.masonry.api"
|
||||||
|
+build-backend = "poetry.core.masonry.api"
|
||||||
|
--
|
||||||
|
2.35.1
|
||||||
|
|
102
pkgs/applications/misc/cobang/default.nix
Normal file
102
pkgs/applications/misc/cobang/default.nix
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonApplication
|
||||||
|
, fetchFromGitHub
|
||||||
|
, wrapGAppsHook
|
||||||
|
, atk
|
||||||
|
, gdk-pixbuf
|
||||||
|
, gobject-introspection
|
||||||
|
, gtk3
|
||||||
|
, gst-plugins-good
|
||||||
|
, libhandy
|
||||||
|
, librsvg
|
||||||
|
, networkmanager
|
||||||
|
, pango
|
||||||
|
, gst-python
|
||||||
|
, kiss-headers
|
||||||
|
, Logbook
|
||||||
|
, pillow
|
||||||
|
, poetry-core
|
||||||
|
, pygobject3
|
||||||
|
, python
|
||||||
|
, python-zbar
|
||||||
|
, requests
|
||||||
|
, single-version
|
||||||
|
, pytestCheckHook }:
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
|
pname = "cobang";
|
||||||
|
version = "0.9.6";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hongquan";
|
||||||
|
repo = "CoBang";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-YcXQ2wAgFSsJEqcaDQotpX1put4pQaF511kwq/c2yHw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./0001-Poetry-core-and-pillow-9.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
gobject-introspection
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
gst-python
|
||||||
|
kiss-headers
|
||||||
|
Logbook
|
||||||
|
pillow
|
||||||
|
poetry-core
|
||||||
|
pygobject3
|
||||||
|
python-zbar
|
||||||
|
requests
|
||||||
|
single-version
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
atk
|
||||||
|
gdk-pixbuf
|
||||||
|
# Needed to detect namespaces
|
||||||
|
gobject-introspection
|
||||||
|
gst-plugins-good
|
||||||
|
libhandy
|
||||||
|
networkmanager
|
||||||
|
pango
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
# Wrapping this manually for SVG recognition
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# Needed by the application
|
||||||
|
cp -R data $out/${python.sitePackages}/
|
||||||
|
|
||||||
|
# Icons and applications
|
||||||
|
install -Dm 644 $out/${python.sitePackages}/data/vn.hoabinh.quan.CoBang.svg -t $out/share/pixmaps/
|
||||||
|
install -Dm 644 $out/${python.sitePackages}/data/vn.hoabinh.quan.CoBang.desktop -t $out/share/applications/
|
||||||
|
substituteInPlace $out/share/applications/vn.hoabinh.quan.CoBang.desktop \
|
||||||
|
--replace "Exec=" "Exec=$out/bin/"
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
wrapProgram $out/bin/cobang \
|
||||||
|
''${gappsWrapperArgs[@]} \
|
||||||
|
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
|
||||||
|
--set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A QR code scanner desktop app for Linux";
|
||||||
|
homepage = "https://github.com/hongquan/CoBang";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ wolfangaukang ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
@ -4484,6 +4484,10 @@ with pkgs;
|
|||||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cobang = python3Packages.callPackage ../applications/misc/cobang {
|
||||||
|
gst-plugins-good = gst_all_1.gst-plugins-good.override { gtkSupport = true; };
|
||||||
|
};
|
||||||
|
|
||||||
cocoapods = callPackage ../development/mobile/cocoapods { };
|
cocoapods = callPackage ../development/mobile/cocoapods { };
|
||||||
|
|
||||||
cocoapods-beta = lowPrio (callPackage ../development/mobile/cocoapods { beta = true; });
|
cocoapods-beta = lowPrio (callPackage ../development/mobile/cocoapods { beta = true; });
|
||||||
|
Loading…
Reference in New Issue
Block a user