summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mung/default.nix
blob: 243030eecd23c93589b310ca8c60cff8d55f6d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  lxml,
  numpy,
  pytestCheckHook,
  scikit-image,
}:
let
  version = "1.2.1";
in
buildPythonPackage {
  pname = "mung";
  inherit version;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "OMR-Research";
    repo = "mung";
    tag = version;
    hash = "sha256-QljGoZdUJRClQ/QzUsCKD0/ooWaFrKXI+93WFPvmIjE=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    lxml
    numpy
    scikit-image
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "mung" ];

  meta = {
    description = "Music Notation Graph: a data model for optical music recognition";
    homepage = "https://github.com/OMR-Research/mung";
    changelog = "https://github.com/OMR-Research/mung/blob/${version}/CHANGES.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ piegames ];
  };
}