From dc59e37c6b92bcc955f7b2bf0abca53a9a6f7d88 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:17:51 +0100 Subject: [PATCH] python3Packages.python-ly: 0.9.7 -> 0.9.9 --- .../python-modules/python-ly/default.nix | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/python-ly/default.nix b/pkgs/development/python-modules/python-ly/default.nix index 1d7e39ccf446..1ab14db3f3dc 100644 --- a/pkgs/development/python-modules/python-ly/default.nix +++ b/pkgs/development/python-modules/python-ly/default.nix @@ -1,25 +1,38 @@ { buildPythonPackage, - fetchPypi, + fetchFromGitHub, lib, + hatchling, + lxml, + pytestCheckHook, }: buildPythonPackage rec { pname = "python-ly"; - version = "0.9.7"; - format = "setuptools"; + version = "0.9.9"; + pyproject = true; - src = fetchPypi { - inherit pname version; - sha256 = "d4d2b68eb0ef8073200154247cc9bd91ed7fb2671ac966ef3d2853281c15d7a8"; + src = fetchFromGitHub { + owner = "frescobaldi"; + repo = "python-ly"; + tag = "v${version}"; + hash = "sha256-CMMssU+qoHbhdny0sgpoYQas4ySPVHnu7GPnSthuMuE="; }; - # tests not shipped on `pypi` and - # seem to be broken ATM: https://github.com/wbsoft/python-ly/issues/70 + build-system = [ hatchling ]; + + # Tests seem to be broken ATM: https://github.com/wbsoft/python-ly/issues/70 doCheck = false; + nativeCheckInputs = [ + lxml + pytestCheckHook + ]; + meta = with lib; { + changelog = "https://github.com/frescobaldi/python-ly/releases/tag/${src.tag}"; description = "Tool and library for manipulating LilyPond files"; + homepage = "https://github.com/frescobaldi/python-ly"; license = licenses.gpl2; maintainers = [ ]; };