Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, h5py 5, ipython 6, lxml 7, mung 8, muscima 9, numpy 10, pillow 11, pytestCheckHook 12, scikit-image 13, sphinx-rtd-theme 14, sympy 15, pandas 16, pyhamcrest 17, tqdm 18, twine 19}: 20 21buildPythonPackage rec { 22 pname = "omrdatasettools"; 23 version = "1.3.1"; 24 25 src = fetchPypi { 26 inherit pname version; 27 sha256 = "0cdq02jp8vh78yjq9bncjjl0pb554idrcxkd62rzwk4l6ss2fkw5"; 28 }; 29 30 propagatedBuildInputs = [ 31 pillow 32 scikit-image 33 h5py 34 pyhamcrest 35 muscima 36 mung 37 numpy 38 lxml 39 tqdm 40 twine 41 sympy 42 sphinx-rtd-theme 43 pandas 44 ipython 45 ]; 46 47 nativeCheckInputs = [ 48 pytestCheckHook 49 ]; 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}