@@ -29626,37 +29626,106 @@ EOF
29626
29626
};
29627
29627
};
29628
29628
29629
- hidapi = callPackage ../development/python-modules/hidapi.nix { };
29629
+ hidapi = buildPythonPackage rec{
29630
+ version = "0.7.99.post15";
29631
+ name = "hidapi-${version}";
29632
+
29633
+ src = pkgs.fetchurl {
29634
+ url = "mirror://pypi/h/hidapi/${name}.tar.gz";
29635
+ sha256 = "09wlr1d7mx80974bsq62j4pk80234jgl7ip4br0y43q6999dpcr0";
29636
+ };
29637
+
29638
+ propagatedBuildInputs = with self; [ pkgs.libusb1 pkgs.udev cython ];
29639
+
29640
+ # Fix the USB backend library lookup
29641
+ postPatch = ''
29642
+ libusb=${pkgs.libusb1.dev}/include/libusb-1.0
29643
+ test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
29644
+ sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
29645
+ '';
29646
+
29647
+ meta = {
29648
+ description = "A Cython interface to the hidapi from https://github.com/signal11/hidapi";
29649
+ homepage = https://github.com/trezor/cython-hidapi;
29650
+ # license can actually be either bsd3 or gpl3
29651
+ # see https://github.com/trezor/cython-hidapi/blob/master/LICENSE-orig.txt
29652
+ license = licenses.bsd3;
29653
+ maintainers = with maintainers; [ np ];
29654
+ };
29655
+ };
29630
29656
29631
29657
mnemonic = callPackage ../development/python-modules/mnemonic.nix { };
29632
29658
29633
29659
trezor = callPackage ../development/python-modules/trezor.nix { };
29634
29660
29635
- keepkey = callPackage ../development/python-modules/keepkey.nix { };
29661
+ keepkey = buildPythonPackage rec{
29662
+ version = "0.7.3";
29663
+ name = "keepkey-${version}";
29664
+
29665
+ src = pkgs.fetchurl {
29666
+ url = "mirror://pypi/k/keepkey/${name}.tar.gz";
29667
+ sha256 = "14d2r8dlx997ypgma2k8by90acw7i3l7hfq4gar9lcka0lqfj714";
29668
+ };
29669
+
29670
+ propagatedBuildInputs = with self; [ protobuf3_0 hidapi ];
29671
+
29672
+ buildInputs = with self; [ ecdsa mnemonic ];
29673
+
29674
+ # There are no actual tests: "ImportError: No module named tests"
29675
+ doCheck = false;
29676
+
29677
+ meta = {
29678
+ description = "KeepKey Python client";
29679
+ homepage = https://github.com/keepkey/python-keepkey;
29680
+ license = licenses.gpl3;
29681
+ maintainers = with maintainers; [ np ];
29682
+ };
29683
+ };
29684
+
29685
+ semver = buildPythonPackage rec {
29686
+ name = "semver-${version}";
29687
+ version = "2.2.1";
29636
29688
29637
- semver = callPackage ../development/python-modules/semver.nix { };
29689
+ src = pkgs.fetchurl {
29690
+ url = "mirror://pypi/s/semver/${name}.tar.gz";
29691
+ sha256 = "161gvsfpw0l8lnf1v19rvqc8b9f8n70cc8ppya4l0n6rwc1c1n4m";
29692
+ };
29638
29693
29639
- ed25519 = callPackage ../development/python-modules/ed25519.nix { };
29694
+ meta = {
29695
+ description = "Python package to work with Semantic Versioning (http://semver.org/)";
29696
+ homepage = "https://github.com/k-bx/python-semver";
29697
+ license = licenses.bsd3;
29698
+ maintainers = with maintainers; [ np ];
29699
+ };
29700
+ };
29640
29701
29641
- libagent = callPackage ../development/python-modules/libagent.nix { };
29702
+ ed25519 = buildPythonPackage rec {
29703
+ name = "ed25519-${version}";
29704
+ version = "1.4";
29642
29705
29643
- ledgerblue = callPackage ../development/python-modules/ledgerblue.nix { };
29706
+ src = pkgs.fetchurl {
29707
+ url = "mirror://pypi/e/ed25519/${name}.tar.gz";
29708
+ sha256 = "0ahx1nkxa0xis3cw0h5c4fpgv8mq4znkq7kajly33lc3317bk499";
29709
+ };
29644
29710
29645
- ecpy = callPackage ../development/python-modules/ecpy.nix { };
29711
+ meta = {
29712
+ description = "Ed25519 public-key signatures";
29713
+ homepage = "https://github.com/warner/python-ed25519";
29714
+ license = licenses.mit;
29715
+ maintainers = with maintainers; [ np ];
29716
+ };
29717
+ };
29646
29718
29647
29719
trezor_agent = buildPythonPackage rec{
29648
- version = "0.9 .0";
29720
+ version = "0.7 .0";
29649
29721
name = "trezor_agent-${version}";
29650
29722
29651
29723
src = pkgs.fetchurl {
29652
29724
url = "mirror://pypi/t/trezor_agent/${name}.tar.gz";
29653
- sha256 = "1i5cdamlf3c0ym600pjklij74p8ifj9cv7xrpnrfl1b8nkadswbz ";
29725
+ sha256 = "1x1gwih6w8kxhpgmcp0v1k7mpmfsqiikkjca291sd0v2if24x7q1 ";
29654
29726
};
29655
29727
29656
- propagatedBuildInputs = with self; [
29657
- trezor libagent ecdsa ed25519
29658
- mnemonic keepkey semver
29659
- ];
29728
+ propagatedBuildInputs = with self; [ trezor ecdsa ed25519 mnemonic keepkey semver ];
29660
29729
29661
29730
meta = {
29662
29731
description = "Using Trezor as hardware SSH agent";
0 commit comments