python-packages/sha256: init at 0.1

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2022-02-20 19:43:43 -08:00 committed by Erik Arvstedt
parent 71eccb73d6
commit 80312ba9d7
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 33 additions and 0 deletions

View File

@ -11,6 +11,7 @@ in {
urldecode = callPackage ./urldecode {};
chromalog = callPackage ./chromalog {};
txzmq = callPackage ./txzmq {};
sha256 = callPackage ./sha256 {};
runes = callPackage ./runes {};
joinmarketbase = joinmarketPkg ./jmbase;

View File

@ -0,0 +1,32 @@
{ lib, buildPythonPackage, fetchFromGitHub, cython }:
buildPythonPackage rec {
pname = "sha256";
version = builtins.substring 0 8 src.rev;
# The version from pypi is old/broken
src = fetchFromGitHub {
repo = "sha256";
owner = "cloudtools";
rev = "e0645d118f7296dde45397a755261f78d421bdee";
sha256 = "sha256-gEctMgF5qZiWelVHVCl3zazRNuaQ7lJP8ExI5xWEBVI=";
};
nativeBuildInputs = [ cython ];
doCheck = false;
configurePhase = ''
python setup.py sdist
'';
meta = with lib; {
description = ''
SHA-256 implementation that allows for setting and getting the mid-state
information.
'';
homepage = "https://github.com/cloudtools/sha256";
maintainers = with maintainers; [ jb55 ];
license = licenses.mit;
};
}