1 { lib, stdenv, libdiscid, buildPythonPackage, fetchPypi }:
3 buildPythonPackage rec {
9 sha256 = "1fc6kvnqwaz9lrs2qgsp8wh0nabf49010r0r53wnsmpmafy315nd";
13 let extension = stdenv.hostPlatform.extensions.sharedLibrary; in
15 substituteInPlace discid/libdiscid.py \
16 --replace "_open_library(_LIB_NAME)" \
17 "_open_library('${libdiscid}/lib/libdiscid${extension}')"
21 description = "Python binding of libdiscid";
22 homepage = "https://python-discid.readthedocs.org/";
23 license = licenses.lgpl3Plus;