blob: e253c0b5c9bff0a9cbbf3b85d9a8aecdc30002c2 (
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
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, bitcoinlib
, buildPythonPackage
, fetchFromGitHub
, git
, GitPython
, pycryptodomex
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "opentimestamps";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "opentimestamps";
repo = "python-opentimestamps";
rev = "python-opentimestamps-v${version}";
hash = "sha256-ZTZ7D3NGhO18IxKqTMFBe6pDvqtGR+9w0cgs6VAHtwg=";
};
propagatedBuildInputs = [
bitcoinlib
GitPython
pycryptodomex
];
checkInputs = [
pytestCheckHook
];
# Remove a failing test which expects the test source file to reside in the
# project's Git repo
postPatch = ''
rm opentimestamps/tests/core/test_git.py
'';
pythonImportsCheck = [
"opentimestamps"
];
meta = with lib; {
description = "Create and verify OpenTimestamps proofs";
homepage = "https://github.com/opentimestamps/python-opentimestamps";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ erikarvstedt ];
};
}
|