diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/btchip/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/btchip/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/btchip/default.nix b/nixpkgs/pkgs/development/python-modules/btchip/default.nix new file mode 100644 index 000000000000..6e2e703dd569 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/btchip/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchPypi, hidapi, pyscard, ecdsa }: + +buildPythonPackage rec { + pname = "btchip-python"; + version = "0.1.28"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "10yxwlsr99gby338rsnczkfigcy36fiajpkr6f44438qlvbx02fs"; + }; + + propagatedBuildInputs = [ hidapi pyscard ecdsa ]; + + # tests requires hardware + doCheck = false; + + meta = with stdenv.lib; { + description = "Python communication library for Ledger Hardware Wallet products"; + homepage = "https://github.com/LedgerHQ/btchip-python"; + license = licenses.asl20; + }; +} |