nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
2, bitcoinlib, GitPython, pysha3, git }:
3
4buildPythonPackage rec {
5 pname = "opentimestamps";
6 version = "0.4.1";
7 disabled = (!isPy3k);
8
9 # We can't use the pypi source because it doesn't include README.md which is
10 # needed in setup.py
11 src = fetchFromGitHub {
12 owner = "opentimestamps";
13 repo = "python-opentimestamps";
14 rev = "python-opentimestamps-v${version}";
15 sha256 = "0c45ij8absfgwizq6dfgg81siq3y8605sgg184vazp292w8nqmqr";
16 };
17
18 # Remove a failing test which expects the test source file to reside in the
19 # project's Git repo
20 postPatch = ''
21 rm opentimestamps/tests/core/test_git.py
22 '';
23
24 checkInputs = [ git ];
25 propagatedBuildInputs = [ bitcoinlib GitPython pysha3 ];
26
27 meta = {
28 description = "Create and verify OpenTimestamps proofs";
29 homepage = https://github.com/opentimestamps/python-opentimestamps;
30 license = lib.licenses.lgpl3;
31 };
32}