9 buildPythonPackage rec {
12 format = "setuptools";
15 inherit pname version;
16 sha256 = "61734db8c554b7b1a2cb2da2e2c15d3f9f5973a57cfb06f8854c38029004a9f8";
20 substituteInPlace setup.py \
21 --replace 'library_dirs=library_dirs' 'library_dirs=[dir.decode("utf-8") for dir in library_dirs]' \
22 --replace 'include_dirs=include_dirs' 'include_dirs=[dir.decode("utf-8") for dir in include_dirs]' \
23 --replace 'runtime_library_dirs=runtime_lib_dirs' 'runtime_library_dirs=[dir.decode("utf-8") for dir in runtime_lib_dirs]'
30 nativeBuildInputs = [ nose pkgs.pkg-config pkgs.swig ];
31 buildInputs = [ setuptools pkgs.libcdio ]
32 ++ lib.optional stdenv.isDarwin pkgs.libiconv;
34 # Run tests using nosetests but first need to install the binaries
35 # to the root source directory where they can be found.
37 ./setup.py install_lib -d .
42 homepage = "https://www.gnu.org/software/libcdio/";
43 description = "Wrapper around libcdio (CD Input and Control library)";
44 license = licenses.gpl3Plus;