cobang: 0.10.1 -> 0.10.5
This commit is contained in:
parent
591f9cbebe
commit
5f7ee2108b
@ -1,72 +1,72 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, atk
|
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, gdk-pixbuf
|
, brotlicffi
|
||||||
, gobject-introspection
|
|
||||||
, gst-plugins-good
|
|
||||||
, gst-python
|
, gst-python
|
||||||
, gtk3
|
|
||||||
, kiss-headers
|
, kiss-headers
|
||||||
, libhandy
|
|
||||||
, librsvg
|
|
||||||
, logbook
|
, logbook
|
||||||
, networkmanager
|
|
||||||
, pango
|
|
||||||
, pillow
|
, pillow
|
||||||
, poetry-core
|
|
||||||
, pygobject3
|
, pygobject3
|
||||||
, pytestCheckHook
|
|
||||||
, python
|
|
||||||
, python-zbar
|
, python-zbar
|
||||||
, pythonRelaxDepsHook
|
|
||||||
, requests
|
, requests
|
||||||
, single-version
|
, single-version
|
||||||
|
, gobject-introspection
|
||||||
|
, gst-plugins-good
|
||||||
|
, gtk3
|
||||||
|
, libhandy
|
||||||
|
, librsvg
|
||||||
|
, networkmanager
|
||||||
|
, setuptools
|
||||||
|
, python
|
||||||
|
, pytestCheckHook
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "cobang";
|
pname = "cobang";
|
||||||
version = "0.10.1";
|
version = "0.10.5";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hongquan";
|
owner = "hongquan";
|
||||||
repo = "CoBang";
|
repo = "CoBang";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-yNDnBTBmwcP3g51UkkLNyF4eHYjblwxPxS2lMwbFKUM=";
|
hash = "sha256-CfT/farNOJiWIioFBPx2q7bAFAE4khcojdZ7AsYaU6o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
postPatch = ''
|
||||||
"logbook"
|
# Fixes "Multiple top-level packages discovered in a flat-layout"
|
||||||
"Pillow"
|
sed -i '$ a\[tool.setuptools]' pyproject.toml
|
||||||
];
|
sed -i '$ a\packages = ["cobang"]' pyproject.toml
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
# Needed to recognize gobject namespaces
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
pythonRelaxDepsHook
|
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
atk
|
# Requires v4l2src
|
||||||
gdk-pixbuf
|
|
||||||
gst-plugins-good
|
gst-plugins-good
|
||||||
|
# For gobject namespaces
|
||||||
libhandy
|
libhandy
|
||||||
networkmanager
|
networkmanager
|
||||||
pango
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
gst-python
|
brotlicffi
|
||||||
kiss-headers
|
kiss-headers
|
||||||
logbook
|
logbook
|
||||||
pillow
|
pillow
|
||||||
poetry-core
|
|
||||||
pygobject3
|
|
||||||
python-zbar
|
|
||||||
requests
|
requests
|
||||||
single-version
|
single-version
|
||||||
|
# Unlisted dependencies
|
||||||
|
pygobject3
|
||||||
|
python-zbar
|
||||||
|
# Needed as a gobject namespace and to fix 'Caps' object is not subscriptable
|
||||||
|
gst-python
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
@ -82,9 +82,8 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
# Icons and applications
|
# 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.svg -t $out/share/pixmaps/
|
||||||
install -Dm 644 $out/${python.sitePackages}/data/vn.hoabinh.quan.CoBang.desktop -t $out/share/applications/
|
install -Dm 644 $out/${python.sitePackages}/data/vn.hoabinh.quan.CoBang.desktop.in -t $out/share/applications/
|
||||||
substituteInPlace $out/share/applications/vn.hoabinh.quan.CoBang.desktop \
|
mv $out/${python.sitePackages}/data/vn.hoabinh.quan.CoBang.desktop{.in,}
|
||||||
--replace "Exec=" "Exec=$out/bin/"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
@ -99,6 +98,7 @@ buildPythonApplication rec {
|
|||||||
homepage = "https://github.com/hongquan/CoBang";
|
homepage = "https://github.com/hongquan/CoBang";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ wolfangaukang ];
|
maintainers = with maintainers; [ wolfangaukang ];
|
||||||
|
mainProgram = "cobang";
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user