about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycoin
diff options
context:
space:
mode:
authornyanloutre <paul@nyanlout.re>2020-04-25 12:58:52 +0200
committerJon <jonringer@users.noreply.github.com>2020-06-24 14:15:59 -0700
commit2b11dcd789f60961473830b7202f9b44810a455c (patch)
treef36bd30add46a6a8292b15e748b9fcdd9aa7c7a7 /pkgs/development/python-modules/pycoin
parentb8e9a8c2df10ece2eceea22fe66d94336d2d7376 (diff)
pythonPackages.pycoin: init at 0.90.20200322
Diffstat (limited to 'pkgs/development/python-modules/pycoin')
-rw-r--r--pkgs/development/python-modules/pycoin/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pycoin/default.nix b/pkgs/development/python-modules/pycoin/default.nix
new file mode 100644
index 0000000000000..a0b743bb8b57c
--- /dev/null
+++ b/pkgs/development/python-modules/pycoin/default.nix
@@ -0,0 +1,42 @@
+{ stdenv
+, fetchPypi
+, buildPythonPackage
+, gnupg
+, setuptools
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "pycoin";
+  version = "0.90.20200322";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "c8af579e86c118deb64d39e0d844d53a065cdd8227ddd632112e5667370b53a3";
+  };
+
+  propagatedBuildInputs = [ setuptools ];
+
+  postPatch = ''
+    substituteInPlace ./pycoin/cmds/tx.py --replace '"gpg"' '"${gnupg}/bin/gpg"'
+  '';
+
+  checkInputs = [ pytestCheckHook ];
+
+  dontUseSetuptoolsCheck = true;
+
+  # Disable tests depending on online services
+  disabledTests = [
+    "ServicesTest"
+    "test_tx_pay_to_opcode_list_txt"
+    "test_tx_fetch_unspent"
+    "test_tx_with_gpg"
+  ];
+
+  meta = with stdenv.lib; {
+    description = "Utilities for Bitcoin and altcoin addresses and transaction manipulation";
+    homepage = "https://github.com/richardkiss/pycoin";
+    license = licenses.mit;
+    maintainers = with maintainers; [ nyanloutre ];
+  };
+}