2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, bitcoinlib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
2022-12-17 10:02:37 +00:00
|
|
|
, gitpython
|
|
|
|
, pycryptodomex
|
2022-10-30 15:09:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opentimestamps";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.4.3";
|
2022-10-30 15:09:59 +00:00
|
|
|
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-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-ZTZ7D3NGhO18IxKqTMFBe6pDvqtGR+9w0cgs6VAHtwg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitcoinlib
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
|
|
|
pycryptodomex
|
2022-10-30 15:09:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/opentimestamps/python-opentimestamps/releases/tag/python-opentimestamps-v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2022-12-17 10:02:37 +00:00
|
|
|
maintainers = with maintainers; [ erikarvstedt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|