soundconverter: init at 4.0.3#152733
Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/how-to-provide-gstreamer-to-a-python-gtk-application/16814/5 |
|
Actually, I got this working without using diff --git a/pkgs/applications/audio/soundconverter/default.nix b/pkgs/applications/audio/soundconverter/default.nix
index 3a3a73c5c72..87810c7d11e 100644
--- a/pkgs/applications/audio/soundconverter/default.nix
+++ b/pkgs/applications/audio/soundconverter/default.nix
@@ -14,18 +14,22 @@ python3Packages.buildPythonApplication rec {
doCheck = false;
buildInputs = with pkgs; [
+ gst_all_1.gst-plugins-bad
+ gst_all_1.gst-plugins-base
+ gst_all_1.gst-plugins-good
+ gst_all_1.gst-plugins-ugly
gtk3
- intltool
python3Packages.distutils_extra
wrapGAppsHook
];
+ nativeBuildInputs = with pkgs; [
+ intltool
+ gobject-introspection
+ ];
+
propagatedBuildInputs = with pkgs; [
gobject-introspection
- gst_all_1.gst-plugins-bad
- gst_all_1.gst-plugins-base
- gst_all_1.gst-plugins-good
- gst_all_1.gst-plugins-ugly
python3Packages.pygobject3
];
@@ -35,8 +39,6 @@ python3Packages.buildPythonApplication rec {
"DATA_PATH = '$out/share/soundconverter'"
'';
- strictDeps = false;
-
meta = with lib; {
homepage = "https://soundconverter.org/";
description = "Leading audio file converter for the GNOME Desktop";Not sure why but it appears And if it's not in |
0dee2e5 to
f31b7e5
Compare
There was a problem hiding this comment.
I just built it and it fails like this
Traceback (most recent call last):
File "/nix/store/m0qlqgs6gxgbpaq4n8d6mvw6pwj9yip2-soundconverter-4.0.3/bin/..soundconverter-wrapped-wrapped", line 34, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
I'll check which python dependency is missing
f31b7e5 to
5a53d24
Compare
|
Interesting, it builds and works fine for me: How does that happen if we are using the same commit with the same version of |
|
Your error looks related to this: It's suggested to add |
5a53d24 to
a5d3600
Compare
|
Yes, I'll check building again as soon as my system updates (I was not up-to-date with nixpkgs) |
a5d3600 to
2a54cfb
Compare
dasj19
left a comment
There was a problem hiding this comment.
I tried for quite some time to get the tests working... some of them are passing but some are failing.
This is what I used:
{ pkgs, python3Packages, lib, fetchurl }:
python3Packages.buildPythonApplication rec {
pname = "soundconverter";
version = "4.0.3";
src = fetchurl {
url = "https://launchpad.net/soundconverter/trunk/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "sha256-hzIG/4LD3705erPYvXb7uoRwF9LtKKIKB3jrhpYMsZ0=";
};
buildInputs = with pkgs; [
gtk3
wrapGAppsHook
];
nativeBuildInputs = with pkgs; [
intltool
gobject-introspection
];
propagatedBuildInputs = with pkgs; [
gobject-introspection
(gst_all_1.gst-plugins-bad.override { faacSupport = true; })
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-ugly
python3Packages.distutils_extra
python3Packages.pygobject3
python3Packages.setuptools
];
postPatch = ''
substituteInPlace bin/soundconverter --replace \
"DATA_PATH = os.path.join(SOURCE_PATH, 'data')" \
"DATA_PATH = '$out/share/soundconverter'"
'';
checkInputs = with pkgs; [
xvfb-run
];
checkPhase = ''
export XDG_DATA_DIRS=${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$out/share/gsettings-schemas/${pname}-${version}:$XDG_DATA_DIRS
xvfb-run python tests/test.py
'';
meta = with lib; {
homepage = "https://soundconverter.org/";
description = "Leading audio file converter for the GNOME Desktop";
longDescription = ''
SoundConverter reads anything the GStreamer library can read,
and writes WAV, FLAC, MP3, AAC and Ogg Vorbis files.
Uses Python and GTK+ GUI toolkit, and runs on X Window System.
'';
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ jakubgs ];
};
}
a662187 to
7600760
Compare
5685600 to
207a935
Compare
207a935 to
add0877
Compare
add0877 to
5583005
Compare
|
Result of 1 package built:
|
06577e6 to
2601105
Compare
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
2601105 to
15c56f1
Compare
Signed-off-by: Jakub Sokołowski <jakub@status.im>
15c56f1 to
073e7d5
Compare
Motivation for this change
SoundConverter is a clean and simple GUI for converting audio files using GStreamer.
Thanks to @austinbutler for his help in the Discourse thread.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes