a97b1c8da0
GitOrigin-RevId: d235056d6d6dcbd2999bd55fd120d831d4df6304
32 lines
861 B
Nix
32 lines
861 B
Nix
{ lib, fetchFromGitHub, beets, pythonPackages }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "beets-extrafiles";
|
|
version = "unstable-2020-12-13";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "beets-extrafiles";
|
|
owner = "Holzhaus";
|
|
rev = "a1d6ef9a9682b6bf7af9483541e56a3ff12247b8";
|
|
sha256 = "sha256-ajuEbieWjTCNjdRZuGUwvStZwjx260jmY0m+ZqNd7ec=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py
|
|
sed -i -e '/namespace_packages/d' setup.py
|
|
'';
|
|
|
|
nativeBuildInputs = [ beets ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ mediafile ];
|
|
|
|
preCheck = ''
|
|
HOME=$TEMPDIR
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Holzhaus/beets-extrafiles";
|
|
description = "A plugin for beets that copies additional files and directories during the import process";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|