From de80a22fa12712f3ea1dcd347183ee6de1719d12 Mon Sep 17 00:00:00 2001 From: Keito Kajitani Date: Tue, 9 Jul 2024 09:23:49 +0900 Subject: [PATCH] python3Packages.python-hglib: 2.6.2 -> 2.6.2-unstable-2024-06-17 --- .../python-modules/python-hglib/default.nix | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/python-hglib/default.nix b/pkgs/development/python-modules/python-hglib/default.nix index 528316240c0a2..7b66d7cf01fb5 100644 --- a/pkgs/development/python-modules/python-hglib/default.nix +++ b/pkgs/development/python-modules/python-hglib/default.nix @@ -1,24 +1,30 @@ { lib, buildPythonPackage, - fetchPypi, + fetchhg, mercurial, - nose, }: buildPythonPackage rec { pname = "python-hglib"; - version = "2.6.2"; + version = "2.6.2-unstable-2024-06-17"; format = "setuptools"; - src = fetchPypi { - inherit pname version; - hash = "sha256-sYvR7VPJDuV9VxTWata7crZOkw1K7KmDCJLAi7KNpgg="; + src = fetchhg { + url = "https://repo.mercurial-scm.org/python-hglib"; + rev = "484b56ac4aec"; + hash = "sha256-cksteuqNgr/oeY5t+4IPHcaGX8wXxLWDHyYnmzSx3Uc="; }; + # setup.py requires a valid versioning in the sense of Python specifications. + # https://packaging.python.org/en/latest/specifications/version-specifiers/ + # Remove this when version >2.6.2 released. + postUnpack = '' + echo "tag: ${lib.concatStrings (lib.strings.intersperse "." (lib.take 3 (lib.versions.splitVersion version)))}+nixpkgs.1" > hg-archive/.hg_archival.txt + ''; + nativeCheckInputs = [ mercurial - nose ]; preCheck = ''