Files
nixpkgs/pkgs/development/python-modules/kaa-metadata/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
kaa-base,
isPyPy,
isPy3k,
python,
pkgs,
}:
buildPythonPackage rec {
version = "0.7.8dev-r4569-20111003";
format = "setuptools";
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
mkdir -p "$out/${python.sitePackages}"
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
${python}/bin/${python.executable} setup.py install \
--install-lib=$out/${python.sitePackages} \
--prefix="$out"
eapth="$out/${python.sitePackages}/easy-install.pth"
if [ -e "$eapth" ]; then
mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
fi
rm -f "$out/${python.sitePackages}"/site.py*
runHook postInstall
'';
meta = {
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 = lib.licenses.gpl2;
maintainers = [ ];
};
}