Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.hg-commitsigs: init at unstable-2021-01-08 #122318

Merged
merged 1 commit into from Sep 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/hg-commitsigs/default.nix
@@ -0,0 +1,41 @@
{ lib
, fetchhg
, stdenv
, python3
}:

stdenv.mkDerivation rec {
pname = "hg-commitsigs";
# Latest tag is 11 years old.
version = "unstable-2021-01-08";

src = fetchhg {
url = "https://foss.heptapod.net/mercurial/commitsigs";
rev = "b53eb6862bff";
sha256 = "sha256-PS1OhC9MiVFD7WYlIn6FavD5TyhM50WoV6YagI2pLxU=";
};

# Not sure how the tests are supposed to be run, and they 10 years old...
doCheck = false;
dontBuild = true;

installPhase = ''
mkdir -p $out/lib/${python3.libPrefix}/site-packages/hgext3rd/
install -D $src/commitsigs.py \
$out/lib/${python3.libPrefix}/site-packages/hgext3rd/
'';

meta = with lib; {
description = "Automatic signing of changeset hashes";
longDescription = ''
This packages provides a Mercurial extension that lets you sign
the changeset hash when you commit. The signature is embedded
directly in the changeset itself; there wont be any extra
commits. Either GnuPG or OpenSSL can be used to sign the hashes.
'';
homepage = "https://foss.heptapod.net/mercurial/commitsigs";
maintainers = with maintainers; [ yoctocell ];
license = licenses.gpl2Plus;
platforms = platforms.unix; # same as Mercurial
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -3025,6 +3025,8 @@ in {

heudiconv = callPackage ../development/python-modules/heudiconv { };

hg-commitsigs = callPackage ../development/python-modules/hg-commitsigs { };

hg-evolve = callPackage ../development/python-modules/hg-evolve { };

hglib = callPackage ../development/python-modules/hglib { };
Expand Down