depot/third_party/nixpkgs/pkgs/development/python-modules/opentimestamps/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

49 lines
1.2 KiB
Nix

{
lib,
bitcoinlib,
buildPythonPackage,
fetchFromGitHub,
gitpython,
pycryptodomex,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "opentimestamps";
version = "0.4.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "opentimestamps";
repo = "python-opentimestamps";
rev = "python-opentimestamps-v${version}";
hash = "sha256-clG/5NAPmmmoj4b3LdVwl58DHg1EFMIMu+erx+GT+NE=";
};
propagatedBuildInputs = [
bitcoinlib
gitpython
pycryptodomex
];
nativeCheckInputs = [ pytestCheckHook ];
# 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
'';
pythonImportsCheck = [ "opentimestamps" ];
meta = with lib; {
description = "Create and verify OpenTimestamps proofs";
homepage = "https://github.com/opentimestamps/python-opentimestamps";
changelog = "https://github.com/opentimestamps/python-opentimestamps/releases/tag/python-opentimestamps-v${version}";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ erikarvstedt ];
};
}