-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
default.nix
44 lines (41 loc) · 959 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
lib,
pkgs,
python3,
}:
python3.pkgs.buildPythonPackage rec {
pname = "mbslave";
version = "29.1.0";
pyproject = true;
src = pkgs.fetchFromGitHub {
owner = "acoustid";
repo = "mbslave";
rev = "refs/tags/v${version}";
sha256 = "sha256-XCj8Jt6uH3/cZDTxQYgkpiV4bc1Y+i/UccfNZVMZbAI=";
};
propagatedBuildInputs = with python3.pkgs; [
attrs
colorama
exceptiongroup
iniconfig
pluggy
prometheus-client
psycopg2
pyparsing
six
sqlparse
tomli
typing-extensions
poetry-core
];
prePatch = ''
substituteInPlace pyproject.toml --replace 'prometheus-client = "^0.20.0"' 'prometheus-client = ">=0.20.0"'
'';
meta = with lib; {
description = "MusicBrainz Database Mirror";
homepage = "https://github.com/acoustid/mbslave";
changelog = "https://github.com/acoustid/mbslave/releases/tag/v${src.rev}";
license = licenses.mit;
mainProgram = "mbslave";
};
}