diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/opentimestamps')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/opentimestamps/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/opentimestamps/default.nix b/nixpkgs/pkgs/development/python-modules/opentimestamps/default.nix new file mode 100644 index 000000000000..01f5595fea10 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/opentimestamps/default.nix @@ -0,0 +1,32 @@ +{ 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; + }; +} |