From 3ffca639a42077048dd6719a7b4d73b9e9e4bb10 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 26 Jun 2018 16:18:17 +0200 Subject: [PATCH 1/2] pythonPackages.base58: init at 1.0.0 --- .../python-modules/base58/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/base58/default.nix diff --git a/pkgs/development/python-modules/base58/default.nix b/pkgs/development/python-modules/base58/default.nix new file mode 100644 index 000000000000..43b2761f6bca --- /dev/null +++ b/pkgs/development/python-modules/base58/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, buildPythonPackage, pytest, pyhamcrest }: + +buildPythonPackage rec { + pname = "base58"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "keis"; + repo = "base58"; + rev = "v${version}"; + sha256 = "0f8isdpvbgw0sqn9bj7hk47y8akpvdl8sn6rkszla0xb92ywj0f6"; + }; + + buildInputs = [ pytest pyhamcrest ]; + checkPhase = '' + pytest + ''; + + meta = with stdenv.lib; { + description = "Base58 and Base58Check implementation"; + homepage = https://github.com/keis/base58; + license = licenses.mit; + maintainers = with maintainers; [ nyanloutre ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9b98a1af7891..940c832afa2c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -980,6 +980,8 @@ in { inherit (pkgs) gcc wirelesstools; }; + base58 = callPackage ../development/python-modules/base58 {}; + batinfo = callPackage ../development/python-modules/batinfo {}; bcdoc = callPackage ../development/python-modules/bcdoc {}; From 71a8aafbb8a287fc6f8a7403d6b2847d14598f59 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 26 Jun 2018 16:28:36 +0200 Subject: [PATCH 2/2] pythonPackages.block-io: init at 1.1.8 --- .../python-modules/block-io/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/block-io/default.nix diff --git a/pkgs/development/python-modules/block-io/default.nix b/pkgs/development/python-modules/block-io/default.nix new file mode 100644 index 000000000000..c0df26143ec3 --- /dev/null +++ b/pkgs/development/python-modules/block-io/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchPypi, fetchpatch, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six }: + +buildPythonPackage rec { + pname = "block-io"; + version = "1.1.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "15468pvpcp41ly7kjpmikpyi4av57d9zhf5j1v01j78r1xqqk56g"; + }; + + propagatedBuildInputs = [ + base58 + ecdsa + pycryptodome + requests + six + ]; + + # Tests needs a BlockIO API key to run properly + # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18 + doCheck = false; + + meta = with stdenv.lib; { + description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io"; + homepage = https://github.com/BlockIo/block_io-python; + license = licenses.mit; + maintainers = with maintainers; [ nyanloutre ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 940c832afa2c..4e488cfd2947 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1095,6 +1095,8 @@ in { }; blessed = callPackage ../development/python-modules/blessed {}; + + block-io = callPackage ../development/python-modules/block-io {}; # Build boost for this specific Python version # TODO: use separate output for libboost_python.so