1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/python-modules/opentimestamps/default.nix
2018-06-22 13:09:36 +02:00

33 lines
947 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, bitcoinlib, GitPython, pysha3, git }:
buildPythonPackage rec {
pname = "opentimestamps";
version = "0.4.0";
disabled = (!isPy3k);
# We can't use the pypi source because it doesn't include README.md which is
# needed in setup.py
src = fetchFromGitHub {
owner = "opentimestamps";
repo = "python-opentimestamps";
rev = "python-opentimestamps-v${version}";
sha256 = "165rj08hwmbn44ra9n0cj5vfn6p49dqfn5lz2mks962mx19c7l0m";
};
# 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
'';
checkInputs = [ git ];
propagatedBuildInputs = [ bitcoinlib GitPython pysha3 ];
meta = {
description = "Create and verify OpenTimestamps proofs";
homepage = https://github.com/opentimestamps/python-opentimestamps;
license = lib.licenses.lgpl3;
};
}