Unverified Commit 04637fc1 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python-ly: add yiyu as maintainer, cleanup (#498736)

parents 02465c56 90e4e9a2
Loading
Loading
Loading
Loading
+25 −9
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  hatchling,
  lib,
  lxml,
  pytestCheckHook,
  versionCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "python-ly";
  version = "0.9.9";
  pyproject = true;
@@ -15,25 +16,40 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "frescobaldi";
    repo = "python-ly";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-CMMssU+qoHbhdny0sgpoYQas4ySPVHnu7GPnSthuMuE=";
  };

  pythonImportsCheck = [ "ly" ];

  build-system = [ hatchling ];

  # Tests seem to be broken ATM: https://github.com/wbsoft/python-ly/issues/70
  doCheck = false;

  nativeCheckInputs = [
    lxml
    pytestCheckHook
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  meta = {
    changelog = "https://github.com/frescobaldi/python-ly/releases/tag/${src.tag}";
    changelog = "https://github.com/frescobaldi/python-ly/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    description = "Tool and library for manipulating LilyPond files";
    homepage = "https://github.com/frescobaldi/python-ly";
    license = lib.licenses.gpl2;
    maintainers = [ ];
    longDescription = ''
      This package provides a Python library ly containing various
      Python modules to parse, manipulate or create documents in
      LilyPond format.  A command line program ly is also provided
      that can be used to do various manipulations with LilyPond
      files.

      The LilyPond format is a plain text input format that is used by
      the GNU music typesetter [LilyPond](https://lilypond.org).
    '';
    homepage = "https://pypi.org/project/python-ly";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ yiyu ];
    mainProgram = "ly";
  };
}
})