about summary refs log tree commit diff
path: root/pkgs/tools/misc/opentimestamps-client/default.nix
blob: 93c10530697fdf22c1d774a123b2b1d50ac079cd (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
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "opentimestamps-client";
  version = "0.7.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "opentimestamps";
    repo = "opentimestamps-client";
    rev = "refs/tags/opentimestamps-client-v${version}";
    hash = "sha256-0dWaXetRlF1MveBdJ0sAdqJ5HCdn08gkbX+nen/ygsQ=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    appdirs
    gitpython
    opentimestamps
    pysocks
  ];

  checkInputs = with python3.pkgs; [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "otsclient"
  ];

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