2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, bitcoinlib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, GitPython
|
|
|
|
, pysha3
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opentimestamps";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.4.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "opentimestamps";
|
|
|
|
repo = "python-opentimestamps";
|
|
|
|
rev = "python-opentimestamps-v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
hash = "sha256-RRCAxDYWySmnG1sEQWurUDQsu+vPx9Npbr6BaoNGm1U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitcoinlib
|
|
|
|
GitPython
|
|
|
|
pysha3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
git
|
|
|
|
pytestCheckHook
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"opentimestamps"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Create and verify OpenTimestamps proofs";
|
|
|
|
homepage = "https://github.com/opentimestamps/python-opentimestamps";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|