mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
266c161842
This is implicitly the case, and unless `doCheck` is referenced it makes no sense setting it.
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchurl,
|
|
meson,
|
|
ninja,
|
|
|
|
pkg-config,
|
|
python,
|
|
pygobject3,
|
|
gobject-introspection,
|
|
gst_all_1,
|
|
isPy3k,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gst-python";
|
|
version = "1.24.7";
|
|
|
|
format = "other";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "https://gstreamer.freedesktop.org/src/gst-python/${pname}-${version}.tar.xz";
|
|
hash = "sha256-bD7gKyDICobiQkWwYQLa4A4BdobydAdib0TcA6w8pTo=";
|
|
};
|
|
|
|
# Python 2.x is not supported.
|
|
disabled = !isPy3k;
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
gst_all_1.gst-plugins-base
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
gst_all_1.gst-plugins-base
|
|
pygobject3
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dpygi-overrides-dir=${placeholder "out"}/${python.sitePackages}/gi/overrides"
|
|
# Exec format error during configure
|
|
"-Dpython=${python.pythonOnBuildForHost.interpreter}"
|
|
];
|
|
|
|
# TODO: Meson setup hook does not like buildPythonPackage
|
|
# https://github.com/NixOS/nixpkgs/issues/47390
|
|
installCheckPhase = "meson test --print-errorlogs";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gstreamer.freedesktop.org";
|
|
description = "Python bindings for GStreamer";
|
|
license = licenses.lgpl2Plus;
|
|
maintainers = [ ];
|
|
};
|
|
}
|