diff --git a/pkgs/development/python-modules/yoyo-migrations/default.nix b/pkgs/development/python-modules/yoyo-migrations/default.nix index 0c5c743144db..f071b8395218 100644 --- a/pkgs/development/python-modules/yoyo-migrations/default.nix +++ b/pkgs/development/python-modules/yoyo-migrations/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromSourcehut, importlib-metadata, setuptools, sqlparse, @@ -10,14 +10,17 @@ buildPythonPackage (finalAttrs: { pname = "yoyo-migrations"; - version = "8.2.0"; + version = "9.0.0"; pyproject = true; __structuredAttrs = true; - src = fetchPypi { - inherit (finalAttrs) pname version; - hash = "sha256-ggYGoD4mLPHNT1niVsKPpEZCUiTVuCo9EnX9eBeFI+Q="; + src = fetchFromSourcehut { + owner = "~olly"; + repo = "yoyo"; + vc = "hg"; + tag = "v${finalAttrs.version}-release"; + hash = "sha256-y3dI1NCx/qYW1121ylq5Kk+ha3Rb8a4ObMQCPwiwxC4="; }; build-system = [ setuptools ]; @@ -34,6 +37,7 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "yoyo" ]; meta = { + changelog = "https://hg.sr.ht/~olly/yoyo/browse/CHANGELOG.rst?rev=${finalAttrs.src.tag}"; description = "Database schema migration tool"; homepage = "https://ollycope.com/software/yoyo"; license = lib.licenses.asl20;