2020-05-31 14:07:46 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, isPy3k
|
2018-06-12 18:52:21 +01:00
|
|
|
, bitcoinlib, GitPython, pysha3, git }:
|
2018-03-07 10:50:23 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-04-27 19:21:20 +01:00
|
|
|
pname = "opentimestamps";
|
2019-11-29 08:02:12 +00:00
|
|
|
version = "0.4.1";
|
2018-03-07 10:50:23 +00:00
|
|
|
disabled = (!isPy3k);
|
|
|
|
|
2018-04-27 19:21:20 +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 10:50:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "opentimestamps";
|
|
|
|
repo = "python-opentimestamps";
|
2018-04-27 19:21:20 +01:00
|
|
|
rev = "python-opentimestamps-v${version}";
|
2019-11-29 08:02:12 +00:00
|
|
|
sha256 = "0c45ij8absfgwizq6dfgg81siq3y8605sgg184vazp292w8nqmqr";
|
2018-03-07 10:50:23 +00:00
|
|
|
};
|
|
|
|
|
2020-05-31 14:07:46 +01:00
|
|
|
patches = [
|
|
|
|
# build against bitcoinlib-0.11
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/opentimestamps/python-opentimestamps/pull/43.patch";
|
|
|
|
sha256 = "0bxzk4pzpqk7zrk2x7vn2bj2n3pc5whf8ijbd225s6674q450zbg";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-03-07 10:50:23 +00:00
|
|
|
# Remove a failing test which expects the test source file to reside in the
|
|
|
|
# project's Git repo
|
2018-06-12 18:52:21 +01:00
|
|
|
postPatch = ''
|
2018-03-07 10:50:23 +00:00
|
|
|
rm opentimestamps/tests/core/test_git.py
|
|
|
|
'';
|
|
|
|
|
2018-06-12 18:52:21 +01:00
|
|
|
checkInputs = [ git ];
|
2018-03-07 10:50:23 +00:00
|
|
|
propagatedBuildInputs = [ bitcoinlib GitPython pysha3 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Create and verify OpenTimestamps proofs";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/opentimestamps/python-opentimestamps";
|
2018-03-07 10:50:23 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
};
|
|
|
|
}
|