2018-03-07 11:50:23 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
2018-06-12 19:52:21 +02:00
|
|
|
, bitcoinlib, GitPython, pysha3, git }:
|
2018-03-07 11:50:23 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-04-27 20:21:20 +02:00
|
|
|
pname = "opentimestamps";
|
2018-06-12 19:52:21 +02:00
|
|
|
version = "0.4.0";
|
2018-03-07 11:50:23 +01:00
|
|
|
disabled = (!isPy3k);
|
|
|
|
|
2018-04-27 20:21:20 +02:00
|
|
|
# We can't use the pypi source because it doesn't include README.md which is
|
|
|
|
# needed in setup.py
|
2018-03-07 11:50:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "opentimestamps";
|
|
|
|
repo = "python-opentimestamps";
|
2018-04-27 20:21:20 +02:00
|
|
|
rev = "python-opentimestamps-v${version}";
|
2018-06-12 19:52:21 +02:00
|
|
|
sha256 = "165rj08hwmbn44ra9n0cj5vfn6p49dqfn5lz2mks962mx19c7l0m";
|
2018-03-07 11:50:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Remove a failing test which expects the test source file to reside in the
|
|
|
|
# project's Git repo
|
2018-06-12 19:52:21 +02:00
|
|
|
postPatch = ''
|
2018-03-07 11:50:23 +01:00
|
|
|
rm opentimestamps/tests/core/test_git.py
|
|
|
|
'';
|
|
|
|
|
2018-06-12 19:52:21 +02:00
|
|
|
checkInputs = [ git ];
|
2018-03-07 11:50:23 +01:00
|
|
|
propagatedBuildInputs = [ bitcoinlib GitPython pysha3 ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Create and verify OpenTimestamps proofs";
|
|
|
|
homepage = https://github.com/opentimestamps/python-opentimestamps;
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
};
|
|
|
|
}
|