about summary refs log tree commit diff
path: root/pkgs/development/python-modules/blockchain
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-02 11:30:23 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-01-02 11:30:23 +0100
commit83234f7375b3771ffd4605fe870488c6db550fcd (patch)
tree6620cc382666f78ad94f6e853895f1dee99f1c37 /pkgs/development/python-modules/blockchain
parenta8040c700ab2c08b2437d65dac7dbabc77f6b014 (diff)
python3Packages.blockchain: init at 1.4.4
Diffstat (limited to 'pkgs/development/python-modules/blockchain')
-rw-r--r--pkgs/development/python-modules/blockchain/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/blockchain/default.nix b/pkgs/development/python-modules/blockchain/default.nix
new file mode 100644
index 0000000000000..e6d523c3c7b89
--- /dev/null
+++ b/pkgs/development/python-modules/blockchain/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, future
+}:
+
+buildPythonPackage rec {
+  pname = "blockchain";
+  version = "1.4.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1qpbmz6dk5gx1996dswpipwhj6sp5j0dlfap012l46zqnvmkxanv";
+  };
+
+  postPatch = ''
+    substituteInPlace setup.py --replace "enum-compat" ""
+  '';
+
+  propagatedBuildInputs = [
+    future
+  ];
+
+  # tests are interacting with the API and not mocking the calls
+  doCheck = false;
+
+  pythonImportsCheck = [ "blockchain" ];
+
+  meta = with lib; {
+    description = "Python client Blockchain Bitcoin Developer API";
+    homepage = "https://github.com/blockchain/api-v1-client-python";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}