python-packages/sha256: init at 0.1
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
71eccb73d6
commit
80312ba9d7
|
@ -11,6 +11,7 @@ in {
|
|||
urldecode = callPackage ./urldecode {};
|
||||
chromalog = callPackage ./chromalog {};
|
||||
txzmq = callPackage ./txzmq {};
|
||||
sha256 = callPackage ./sha256 {};
|
||||
runes = callPackage ./runes {};
|
||||
|
||||
joinmarketbase = joinmarketPkg ./jmbase;
|
||||
|
|
32
pkgs/python-packages/sha256/default.nix
Normal file
32
pkgs/python-packages/sha256/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user