Files
nixpkgs/pkgs/development/python-modules/audio-metadata/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.5 KiB
Nix

{
lib,
attrs,
bidict,
bitstruct,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
more-itertools,
pendulum,
poetry-core,
pprintpp,
pythonOlder,
tbm-utils,
}:
buildPythonPackage rec {
pname = "audio-metadata";
version = "0.11.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "thebigmunch";
repo = "audio-metadata";
tag = version;
hash = "sha256-5ZX4HwbuB9ZmFfHuxaMCrn3R7/znuDsoyqqLql2Nizg=";
};
patches = [
# Switch to poetry-core, https://github.com/thebigmunch/audio-metadata/pull/41
(fetchpatch {
name = "switch-to-poetry-core.patch";
url = "https://github.com/thebigmunch/audio-metadata/commit/dfe91a69ee37e9dcefb692165eb0f9cd36a7e5b8.patch";
hash = "sha256-ut3mqgZQu0YFbsTEA13Ch0+aSNl17ndMV0fuIu3n5tc=";
})
];
pythonRelaxDeps = [
"attrs"
"more-itertools"
"pendulum"
];
build-system = [ poetry-core ];
dependencies = [
attrs
bidict
bitstruct
more-itertools
pendulum
pprintpp
tbm-utils
];
# Tests require ward which is not ready to be used
doCheck = false;
pythonImportsCheck = [ "audio_metadata" ];
meta = with lib; {
description = "Library for handling the metadata from audio files";
homepage = "https://github.com/thebigmunch/audio-metadata";
changelog = "https://github.com/thebigmunch/audio-metadata/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}