Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / btchip / default.nix
blobe34b58907ea8733f8d38e71acbc2314d732b13c1
1 { lib, buildPythonPackage, fetchPypi, hidapi, pyscard, ecdsa }:
3 buildPythonPackage rec {
4   pname = "btchip-python";
5   version = "0.1.32";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "34f5e0c161c08f65dc0d070ba2ff4c315ed21c4b7e0faa32a46862d0dc1b8f55";
10   };
12   propagatedBuildInputs = [ hidapi pyscard ecdsa ];
14   # tests requires hardware
15   doCheck = false;
17   pythonImportsCheck = [ "btchip.btchip" ];
19   meta = with lib; {
20     description = "Python communication library for Ledger Hardware Wallet products";
21     homepage = "https://github.com/LedgerHQ/btchip-python";
22     license = licenses.asl20;
23   };