biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / opentimestamps / default.nix
blob5a9c412dcd5459b2c4c2ca573c5fcb70e031eee1
2   lib,
3   bitcoinlib,
4   buildPythonPackage,
5   fetchFromGitHub,
6   gitpython,
7   pycryptodomex,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "opentimestamps";
14   version = "0.4.5";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "opentimestamps";
21     repo = "python-opentimestamps";
22     rev = "python-opentimestamps-v${version}";
23     hash = "sha256-clG/5NAPmmmoj4b3LdVwl58DHg1EFMIMu+erx+GT+NE=";
24   };
26   propagatedBuildInputs = [
27     bitcoinlib
28     gitpython
29     pycryptodomex
30   ];
32   nativeCheckInputs = [ pytestCheckHook ];
34   # Remove a failing test which expects the test source file to reside in the
35   # project's Git repo
36   postPatch = ''
37     rm opentimestamps/tests/core/test_git.py
38   '';
40   pythonImportsCheck = [ "opentimestamps" ];
42   meta = with lib; {
43     description = "Create and verify OpenTimestamps proofs";
44     homepage = "https://github.com/opentimestamps/python-opentimestamps";
45     changelog = "https://github.com/opentimestamps/python-opentimestamps/releases/tag/python-opentimestamps-v${version}";
46     license = licenses.lgpl3Plus;
47     maintainers = with maintainers; [ erikarvstedt ];
48   };