summary refs log tree commit diff
path: root/pkgs/tools/misc/opentimestamps-client/default.nix
blob: 6c17cf62a64013fb72ae225e93c5aa642e07b4ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildPythonApplication, fetchFromGitHub, isPy3k
, opentimestamps, appdirs, GitPython, pysocks, fetchpatch, git
}:

buildPythonApplication rec {
  pname = "opentimestamps-client";
  version = "0.7.1";
  disabled = (!isPy3k);

  # We can't use the pypi source because it doesn't include README.md which is
  # needed in setup.py
  src = fetchFromGitHub {
    owner = "opentimestamps";
    repo = "opentimestamps-client";
    rev = "refs/tags/opentimestamps-client-v${version}";
    sha256 = "sha256-0dWaXetRlF1MveBdJ0sAdqJ5HCdn08gkbX+nen/ygsQ=";
  };

  propagatedBuildInputs = [ opentimestamps appdirs GitPython pysocks ];

  meta = with lib; {
    description = "Command-line tool to create and verify OpenTimestamps proofs";
    homepage = "https://github.com/opentimestamps/opentimestamps-client";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ erikarvstedt ];
  };
}