2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
kaa-base,
|
|
|
|
isPyPy,
|
|
|
|
isPy3k,
|
|
|
|
python,
|
|
|
|
pkgs,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.7.8dev-r4569-20111003";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "kaa-metadata";
|
|
|
|
disabled = isPyPy || isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0bkbzfgxvmby8lvzkqjp86anxvv3vjd9nksv2g4l7shsk1n7y27a";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.libdvdread ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ kaa-base ];
|
|
|
|
|
|
|
|
# Same as in buildPythonPackage except that it does not pass --old-and-unmanageable
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
mkdir -p "$out/${python.sitePackages}"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
${python}/bin/${python.executable} setup.py install \
|
2024-02-07 01:22:34 +00:00
|
|
|
--install-lib=$out/${python.sitePackages} \
|
2020-04-24 23:36:52 +00:00
|
|
|
--prefix="$out"
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
eapth="$out/${python.sitePackages}/easy-install.pth"
|
2020-04-24 23:36:52 +00:00
|
|
|
if [ -e "$eapth" ]; then
|
|
|
|
mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
|
|
|
|
fi
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
rm -f "$out/${python.sitePackages}"/site.py*
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python library for parsing media metadata, which can extract metadata (e.g., such as id3 tags) from a wide range of media files";
|
|
|
|
homepage = "https://github.com/freevo/kaa-metadata";
|
|
|
|
license = licenses.gpl2;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|