1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 lxml,
7 numpy,
8 pytestCheckHook,
9 scikit-image,
10}:
11let
12 version = "1.2.1";
13in
14buildPythonPackage {
15 pname = "mung";
16 inherit version;
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "OMR-Research";
21 repo = "mung";
22 tag = version;
23 hash = "sha256-QljGoZdUJRClQ/QzUsCKD0/ooWaFrKXI+93WFPvmIjE=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 lxml
30 numpy
31 scikit-image
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "mung" ];
37
38 meta = with lib; {
39 description = "Music Notation Graph: a data model for optical music recognition";
40 homepage = "https://github.com/OMR-Research/mung";
41 changelog = "https://github.com/OMR-Research/mung/blob/${version}/CHANGES.md";
42 license = licenses.mit;
43 maintainers = with maintainers; [ piegames ];
44 };
45}