1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
attrs,
|
|
bidict,
|
|
bitstruct,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
more-itertools,
|
|
pendulum,
|
|
poetry-core,
|
|
pprintpp,
|
|
tbm-utils,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "audio-metadata";
|
|
version = "0.11.1";
|
|
pyproject = true;
|
|
|
|
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 = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jakewaksbaum ];
|
|
};
|
|
}
|