anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / tools / audio / beets / plugins / alternatives.nix
blob440c476309a6654086f2c707353f3bbb4ce5052f
1 { lib, fetchFromGitHub, beets, python3Packages }:
3 python3Packages.buildPythonApplication rec {
4   pname = "beets-alternatives";
5   version = "0.13.0";
6   pyproject = true;
8   src = fetchFromGitHub {
9     repo = "beets-alternatives";
10     owner = "geigerzaehler";
11     rev = "refs/tags/v${version}";
12     sha256 = "sha256-i67Bzdh84TuVwcgwo5SgHFp1W04KF3VA6cbrFz82je0=";
13   };
15   nativeBuildInputs = [
16     beets
17     python3Packages.poetry-core
18   ];
20   nativeCheckInputs = with python3Packages; [
21     pytestCheckHook
22     pytest-cov
23     mock
24     typeguard
25   ];
26   preCheck = ''
27     export HOME=$(mktemp -d)
28   '';
30   meta = with lib; {
31     description = "Beets plugin to manage external files";
32     homepage = "https://github.com/geigerzaehler/beets-alternatives";
33     maintainers = with maintainers; [ aszlig lovesegfault ];
34     license = licenses.mit;
35   };