depot/third_party/nixpkgs/pkgs/tools/audio/beets/plugins/alternatives.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
847 B
Nix

{ lib, fetchFromGitHub, beets, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "beets-alternatives";
version = "0.13.0";
pyproject = true;
src = fetchFromGitHub {
repo = "beets-alternatives";
owner = "geigerzaehler";
rev = "refs/tags/v${version}";
sha256 = "sha256-i67Bzdh84TuVwcgwo5SgHFp1W04KF3VA6cbrFz82je0=";
};
nativeBuildInputs = [
beets
python3Packages.poetry-core
];
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-cov
mock
typeguard
];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Beets plugin to manage external files";
homepage = "https://github.com/geigerzaehler/beets-alternatives";
maintainers = with maintainers; [ aszlig lovesegfault ];
license = licenses.mit;
};
}