2022-05-18 14:49:53 +00:00
|
|
|
{ lib, fetchFromGitHub, beets, python3Packages }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
python3Packages.buildPythonApplication {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "beets-extrafiles";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "unstable-2020-12-13";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "beets-extrafiles";
|
|
|
|
owner = "Holzhaus";
|
2021-04-22 02:08:21 +00:00
|
|
|
rev = "a1d6ef9a9682b6bf7af9483541e56a3ff12247b8";
|
|
|
|
sha256 = "sha256-ajuEbieWjTCNjdRZuGUwvStZwjx260jmY0m+ZqNd7ec=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py
|
|
|
|
sed -i -e '/namespace_packages/d' setup.py
|
2021-09-18 10:52:07 +00:00
|
|
|
sed -i -e 's/mediafile~=0.6.0/mediafile>=0.6.0/' setup.py
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ mediafile ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
python3Packages.pytestCheckHook
|
|
|
|
beets
|
|
|
|
];
|
2021-04-22 02:08:21 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
preCheck = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
HOME="$(mktemp -d)"
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/Holzhaus/beets-extrafiles";
|
|
|
|
description = "A plugin for beets that copies additional files and directories during the import process";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
inherit (beets.meta) platforms;
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|