summary refs log tree commit diff
path: root/pkgs/development/python-modules/hwi/default.nix
diff options
context:
space:
mode:
authorDivam Narula <dfordivam@gmail.com>2020-08-16 10:13:57 +0530
committerGitHub <noreply@github.com>2020-08-16 10:13:57 +0530
commit818d24c9db757764e03e4ec94617d6585f44ea2d (patch)
tree3854dc5a049d1820fbc60dd324cce5e0b5d9077b /pkgs/development/python-modules/hwi/default.nix
parentfee55e2bb1e9f471bc8342a13ca062c710d39f41 (diff)
parentdfbda2135c3f8f7b158b7621d9745b94c8a56cf8 (diff)
downloadnixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar
nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.gz
nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.bz2
nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.lz
nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.xz
nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.tar.zst
nixpkgs-818d24c9db757764e03e4ec94617d6585f44ea2d.zip
Merge branch 'staging' into upstream-wasm-cross-nixpkgs-4
Diffstat (limited to 'pkgs/development/python-modules/hwi/default.nix')
-rw-r--r--pkgs/development/python-modules/hwi/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hwi/default.nix b/pkgs/development/python-modules/hwi/default.nix
new file mode 100644
index 00000000000..de9c7995bde
--- /dev/null
+++ b/pkgs/development/python-modules/hwi/default.nix
@@ -0,0 +1,51 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, mnemonic
+, ecdsa
+, typing-extensions
+, hidapi
+, libusb1
+, pyaes
+, trezor
+, btchip
+, ckcc-protocol
+}:
+
+buildPythonPackage rec {
+  pname = "hwi";
+  version = "1.1.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "eec460a51eb556500c1eca92015be246d5714cd53171407a76da71e4346048ae";
+  };
+
+  propagatedBuildInputs = [
+    mnemonic
+    ecdsa
+    typing-extensions
+    hidapi
+    libusb1
+    pyaes
+    trezor
+    btchip
+    ckcc-protocol
+  ];
+
+  patches = [ ./relax-deps.patch ];
+
+  # tests are not packaged in the released tarball
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "hwilib"
+  ];
+
+  meta = {
+    description = "Bitcoin Hardware Wallet Interface";
+    homepage = "https://github.com/bitcoin-core/hwi";
+    license = with lib.licenses; [ mit ];
+    maintainers = with lib.maintainers; [ prusnak ];
+  };
+}