nixpkgs/pkgs/tools/misc/opentimestamps-client/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2018-03-07 11:00:32 +00:00
{ lib, buildPythonApplication, fetchFromGitHub, isPy3k
, opentimestamps, appdirs, GitPython, pysocks, fetchpatch, git
}:
2018-03-07 11:00:32 +00:00
buildPythonApplication rec {
2018-04-27 19:21:50 +01:00
pname = "opentimestamps-client";
version = "0.6.0";
2018-03-07 11:00:32 +00:00
disabled = (!isPy3k);
2018-04-27 19:21:50 +01:00
# We can't use the pypi source because it doesn't include README.md which is
# needed in setup.py
2018-03-07 11:00:32 +00:00
src = fetchFromGitHub {
owner = "opentimestamps";
repo = "opentimestamps-client";
2018-04-27 19:21:50 +01:00
rev = "opentimestamps-client-v${version}";
sha256 = "05m8nllqad3k69mvby5q08y22i0wrj84gqifdgcldimrrn1i00xp";
2018-03-07 11:00:32 +00:00
};
patches = [
(fetchpatch {
url = "https://github.com/opentimestamps/opentimestamps-client/commit/1b328269ceee66916e9a639e8d5d7d13cd70d5d8.patch";
sha256 = "0bd3yalyvk5n4sflw9zilpay5k653ybdgkkfppyrk7c8z3i81hbl";
})
];
checkInputs = [ git ];
2018-04-27 19:21:50 +01:00
propagatedBuildInputs = [ opentimestamps appdirs GitPython pysocks ];
2018-03-07 11:00:32 +00:00
meta = {
description = "Command-line tool to create and verify OpenTimestamps proofs";
homepage = https://github.com/opentimestamps/opentimestamps-client;
license = lib.licenses.lgpl3;
};
}