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 = [ ]; };