2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
lxml,
|
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
|
|
|
scikit-image,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
let
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.2.1";
|
2023-05-24 13:37:59 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "mung";
|
2023-10-19 13:55:26 +00:00
|
|
|
inherit version;
|
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OMR-Research";
|
|
|
|
repo = "mung";
|
2023-10-19 13:55:26 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-QljGoZdUJRClQ/QzUsCKD0/ooWaFrKXI+93WFPvmIjE=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lxml
|
|
|
|
numpy
|
|
|
|
scikit-image
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mung" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Music Notation Graph: a data model for optical music recognition";
|
|
|
|
homepage = "https://github.com/OMR-Research/mung";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/OMR-Research/mung/blob/${version}/CHANGES.md";
|
2023-05-24 13:37:59 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ piegames ];
|
|
|
|
};
|
|
|
|
}
|