1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6
7 # build dependencies
8 poetry-core,
9
10 # dependencies
11 babelfish,
12 pyyaml,
13 rebulk,
14 unidecode,
15
16 # tests
17 pytestCheckHook,
18}:
19
20buildPythonPackage rec {
21 pname = "trakit";
22 version = "0.2.5";
23 pyproject = true;
24
25 disabled = pythonOlder "3.11";
26
27 src = fetchFromGitHub {
28 owner = "ratoaq2";
29 repo = "trakit";
30 tag = version;
31 hash = "sha256-x/83yRzvQ81+wS0lJr52KYBMoPvSVDr17ppxG/lSfUg=";
32 };
33
34 build-system = [ poetry-core ];
35
36 dependencies = [
37 babelfish
38 pyyaml
39 rebulk
40 ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 unidecode
45 ];
46
47 disabledTests = [
48 # requires network access
49 "test_generate_config"
50 ];
51
52 pythonImportsCheck = [ "trakit" ];
53
54 meta = {
55 description = "Guess additional information from track titles";
56 homepage = "https://github.com/ratoaq2/trakit";
57 changelog = "https://github.com/ratoaq2/trakit/releases/tag/${src.tag}";
58 license = lib.licenses.mit;
59 maintainers = with lib.maintainers; [ eljamm ];
60 };
61}