2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
bitcoinlib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gitpython,
|
|
|
|
pycryptodomex,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2022-10-30 15:09:59 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opentimestamps";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.4.5";
|
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}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-clG/5NAPmmmoj4b3LdVwl58DHg1EFMIMu+erx+GT+NE=";
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ 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
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|