1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 h5py, 6 ipython, 7 lxml, 8 mung, 9 muscima, 10 numpy, 11 pillow, 12 pytestCheckHook, 13 scikit-image, 14 sphinx-rtd-theme, 15 sympy, 16 pandas, 17 pyhamcrest, 18 tqdm, 19 twine, 20}: 21 22buildPythonPackage rec { 23 pname = "omrdatasettools"; 24 version = "1.4.0"; 25 format = "setuptools"; 26 27 src = fetchPypi { 28 inherit pname version; 29 hash = "sha256-kUUcbti29uDnSEvCubMAUnptlaZGpEsW2IBGSAGnGyQ="; 30 }; 31 32 propagatedBuildInputs = [ 33 pillow 34 scikit-image 35 h5py 36 pyhamcrest 37 muscima 38 mung 39 numpy 40 lxml 41 tqdm 42 twine 43 sympy 44 sphinx-rtd-theme 45 pandas 46 ipython 47 ]; 48 49 nativeCheckInputs = [ pytestCheckHook ]; 50 51 disabledTestPaths = [ 52 # The download tests require internet access 53 "omrdatasettools/tests/test_downloader.py" 54 ]; 55 56 disabledTests = [ 57 # The download tests require internet access 58 "test_download_extract_and_crop_bitmaps" 59 "test_download_extract_and_render_all_symbols" 60 "test_download_extract_and_draw_bitmaps" 61 # Other failures 62 "test_render_node_masks_instance_segmentation_of_staff_blobs" 63 "test_render_node_masks_instance_segmentation_of_staff_lines" 64 "test_render_node_masks_semantic_segmentation_of_nodes" 65 ]; 66 67 meta = with lib; { 68 description = "Collection of datasets used for Optical Music Recognition"; 69 homepage = "https://github.com/apacha/OMR-Datasets"; 70 changelog = "https://github.com/apacha/OMR-Datasets/blob/${version}/CHANGES.md"; 71 license = licenses.mit; 72 maintainers = with maintainers; [ piegames ]; 73 }; 74}