2020-06-16 20:42:37 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, isPy27, pytest, pyhamcrest }:
|
2018-06-26 14:18:17 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "base58";
|
2020-07-31 08:56:36 +00:00
|
|
|
version = "2.0.1";
|
2020-06-16 20:42:37 +00:00
|
|
|
disabled = isPy27; # python 2 abandoned upstream
|
2018-06-26 14:18:17 +00:00
|
|
|
|
2019-01-17 14:27:40 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-31 08:56:36 +00:00
|
|
|
sha256 = "365c9561d9babac1b5f18ee797508cd54937a724b6e419a130abad69cec5ca79";
|
2018-06-26 14:18:17 +00:00
|
|
|
};
|
|
|
|
|
2019-01-17 14:27:40 +00:00
|
|
|
checkInputs = [ pytest pyhamcrest ];
|
2018-06-26 14:18:17 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Base58 and Base58Check implementation";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/keis/base58";
|
2018-06-26 14:18:17 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|