From 031d627f6672a936a0148d0679d94a0e2830d97a Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Sun, 30 Jul 2017 14:38:42 -0400 Subject: [PATCH] cryptop: init at 0.1.0 This commit adds the python application cryptop, which is a small curses application for viewing cryptocurrency portfolio values. --- .../applications/altcoins/cryptop/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/applications/altcoins/cryptop/default.nix diff --git a/pkgs/applications/altcoins/cryptop/default.nix b/pkgs/applications/altcoins/cryptop/default.nix new file mode 100644 index 000000000000..33853f150cb6 --- /dev/null +++ b/pkgs/applications/altcoins/cryptop/default.nix @@ -0,0 +1,24 @@ +{ lib, python2}: + +python2.pkgs.buildPythonApplication rec { + pname = "cryptop"; + version = "0.1.0"; + name = "${pname}-${version}"; + + src = python2.pkgs.fetchPypi { + inherit pname version; + sha256 = "00glnlyig1aajh30knc5rnfbamwfxpg29js2db6mymjmfka8lbhh"; + }; + + propagatedBuildInputs = [ python2.pkgs.requests ]; + + # No tests in archive + doCheck = false; + + meta = { + homepage = "http://github.com/huwwp/cryptop"; + description = "Command line Cryptocurrency Portfolio"; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ bhipple ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1f48e16ccdae..8c863e8cf324 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13382,6 +13382,8 @@ with pkgs; bitcoin = altcoins.bitcoin; bitcoin-xt = altcoins.bitcoin-xt; + cryptop = callPackage ../applications/altcoins/cryptop { }; + libbitcoin = callPackage ../tools/misc/libbitcoin/libbitcoin.nix { secp256k1 = secp256k1.override { enableECDH = true; }; };