depot/third_party/nixpkgs/pkgs/development/python-modules/opentimestamps/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

53 lines
1.2 KiB
Nix

{ lib
, bitcoinlib
, buildPythonPackage
, fetchFromGitHub
, git
, gitpython
, pycryptodomex
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "opentimestamps";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "opentimestamps";
repo = "python-opentimestamps";
rev = "python-opentimestamps-v${version}";
hash = "sha256-ZTZ7D3NGhO18IxKqTMFBe6pDvqtGR+9w0cgs6VAHtwg=";
};
propagatedBuildInputs = [
bitcoinlib
gitpython
pycryptodomex
];
checkInputs = [
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 ];
};
}