summary refs log tree commit diff
path: root/pkgs/development/python-modules/opentimestamps/default.nix
blob: 1271a46f047d55ce6e3acecbe749c1a8cba3ff40 (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
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, bitcoinlib, GitPython, pysha3 }:

buildPythonPackage rec {
  name = "opentimestamps-${version}";
  version = "0.2.1";
  disabled = (!isPy3k);

  src = fetchFromGitHub {
    owner = "opentimestamps";
    repo = "python-opentimestamps";
    rev = "python-opentimestamps-v0.2.1";
    sha256 = "1cilv1ls9mdqk8zriqfkz7xcl8i1ncm0f89n4c8k4s82kf5y56rm";
  };

  # Remove a failing test which expects the test source file to reside in the
  # project's Git repo
  patchPhase = ''
    rm opentimestamps/tests/core/test_git.py
  '';

  propagatedBuildInputs = [ bitcoinlib GitPython pysha3 ];

  meta = {
    description = "Create and verify OpenTimestamps proofs";
    homepage = https://github.com/opentimestamps/python-opentimestamps;
    license = lib.licenses.lgpl3;
  };
}