2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-10-19 13:55:26 +00:00
|
|
|
, setuptools
|
2023-05-24 13:37:59 +00:00
|
|
|
, lxml
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
|
|
|
, scikit-image
|
|
|
|
}:
|
|
|
|
let
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.2";
|
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}";
|
|
|
|
hash = "sha256-NSKaJkJRevTy5gh6/ik8Qe46bOPdznsmXPgh7Xz7vXQ=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lxml
|
|
|
|
numpy
|
|
|
|
scikit-image
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mung"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|