brltty: build python bindings

This commit is contained in:
Jan Tojnar 2017-12-25 06:46:30 +01:00
parent 73050d3b20
commit f8a500f722
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,35 +1,37 @@
{ stdenv, fetchurl, pkgconfig, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }: { stdenv, fetchurl, pkgconfig, python3, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }:
assert alsaSupport -> alsaLib != null; assert alsaSupport -> alsaLib != null;
assert systemdSupport -> systemd != null; assert systemdSupport -> systemd != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "brltty-5.5"; name = "brltty-5.5";
src = fetchurl { src = fetchurl {
url = "http://brltty.com/archive/${name}.tar.gz"; url = "http://brltty.com/archive/${name}.tar.gz";
sha256 = "0slrqanwj9cm7ql0rpb296xq676zrc1sjyr13lh5lygp4b8qfpci"; sha256 = "0slrqanwj9cm7ql0rpb296xq676zrc1sjyr13lh5lygp4b8qfpci";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig python3.pkgs.cython ];
buildInputs = [ bluez ] buildInputs = [ bluez ]
++ stdenv.lib.optional alsaSupport alsaLib ++ stdenv.lib.optional alsaSupport alsaLib
++ stdenv.lib.optional systemdSupport systemd; ++ stdenv.lib.optional systemdSupport systemd;
meta = { meta = {
description = "Access software for a blind person using a braille display"; description = "Access software for a blind person using a braille display";
longDescription = '' longDescription = ''
BRLTTY is a background process (daemon) which provides access to the Linux/Unix BRLTTY is a background process (daemon) which provides access to the Linux/Unix
console (when in text mode) for a blind person using a refreshable braille display. console (when in text mode) for a blind person using a refreshable braille display.
It drives the braille display, and provides complete screen review functionality. It drives the braille display, and provides complete screen review functionality.
Some speech capability has also been incorporated. Some speech capability has also been incorporated.
''; '';
homepage = http://www.brltty.com/; homepage = http://www.brltty.com/;
license = stdenv.lib.licenses.gpl2; license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.bramd ]; maintainers = [ stdenv.lib.maintainers.bramd ];
platforms = stdenv.lib.platforms.all; platforms = stdenv.lib.platforms.all;
}; };
makeFlags = [ "PYTHON_PREFIX=$(out)" ];
preConfigurePhases = [ "preConfigure" ]; preConfigurePhases = [ "preConfigure" ];
preConfigure = '' preConfigure = ''