Files
nixpkgs/pkgs/development/python-modules/hg-evolve/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
mercurial,
setuptools,
}:
buildPythonPackage rec {
pname = "hg-evolve";
version = "11.1.9";
pyproject = true;
src = fetchPypi {
pname = "hg_evolve";
inherit version;
hash = "sha256-sypSfUqXQkmDSITJq/XHH82EGNIMvjgocc+3mLK+n0A=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ mercurial ];
checkPhase = ''
runHook preCheck
export TESTTMP=$(mktemp -d)
export HOME=$TESTTMP
cat <<EOF >$HOME/.hgrc
[extensions]
evolve =
topic =
EOF
# Shipped tests use the mercurial testing framework, and produce inconsistent results.
# Do a quick smoke-test to see if things do what we expect.
hg init $TESTTMP/repo
pushd $TESTTMP/repo
touch a
hg add a
hg commit -m "init a"
hg topic something
touch b
hg add b
hg commit -m "init b"
echo hi > b
hg amend
hg obslog
popd
runHook postCheck
'';
meta = with lib; {
description = "Enables the changeset evolution feature of Mercurial core";
homepage = "https://www.mercurial-scm.org/doc/evolution/";
maintainers = with maintainers; [
xavierzwirtz
lukegb
];
license = licenses.gpl2Plus;
};
}