about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/omrdatasettools/default.nix
blob: c210349ad631d85c762710716734c8b3610ceb31 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{ lib
, buildPythonPackage
, fetchPypi
, h5py
, ipython
, lxml
, mung
, muscima
, numpy
, pillow
, pytestCheckHook
, scikit-image
, sphinx-rtd-theme
, sympy
, pandas
, pyhamcrest
, tqdm
, twine
}:

buildPythonPackage rec {
  pname = "omrdatasettools";
  version = "1.4.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-kUUcbti29uDnSEvCubMAUnptlaZGpEsW2IBGSAGnGyQ=";
  };

  propagatedBuildInputs = [
    pillow
    scikit-image
    h5py
    pyhamcrest
    muscima
    mung
    numpy
    lxml
    tqdm
    twine
    sympy
    sphinx-rtd-theme
    pandas
    ipython
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTestPaths = [
    # The download tests require internet access
    "omrdatasettools/tests/test_downloader.py"
  ];

  disabledTests = [
    # The download tests require internet access
    "test_download_extract_and_crop_bitmaps"
    "test_download_extract_and_render_all_symbols"
    "test_download_extract_and_draw_bitmaps"
    # Other failures
    "test_render_node_masks_instance_segmentation_of_staff_blobs"
    "test_render_node_masks_instance_segmentation_of_staff_lines"
    "test_render_node_masks_semantic_segmentation_of_nodes"
  ];

  meta = with lib; {
    description = "Collection of datasets used for Optical Music Recognition";
    homepage = "https://github.com/apacha/OMR-Datasets";
    changelog = "https://github.com/apacha/OMR-Datasets/blob/${version}/CHANGES.md";
    license = licenses.mit;
    maintainers = with maintainers; [ piegames ];
  };
}