From 5162507599daca2ffb0682a4eb15c4ce19894753 Mon Sep 17 00:00:00 2001 From: oxalica Date: Wed, 7 Apr 2021 23:11:42 +0800 Subject: [PATCH] pythonPackages.pysatochip: init at 0.11.4 --- .../python-modules/pysatochip/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/pysatochip/default.nix diff --git a/pkgs/development/python-modules/pysatochip/default.nix b/pkgs/development/python-modules/pysatochip/default.nix new file mode 100644 index 000000000000..f24571a78cf1 --- /dev/null +++ b/pkgs/development/python-modules/pysatochip/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchPypi, pyscard, ecdsa, pyaes +, pythonOlder }: + +buildPythonPackage rec { + pname = "pysatochip"; + version = "0.11.4"; + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-Jj/zZIS9aXmZ2xdi29Eun7iRIrIk9oBlrtN9+6opIMo="; + }; + + propagatedBuildInputs = [ pyscard ecdsa pyaes ]; + + pythonImportsCheck = [ "pysatochip" ]; + + meta = with lib; { + description = "Simple python library to communicate with a Satochip hardware wallet"; + homepage = "https://github.com/Toporin/pysatochip"; + license = licenses.lgpl3Only; + maintainers = with maintainers; [ oxalica ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c2853aa327b6..a5e5a3a65da7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6255,6 +6255,8 @@ in { inherit (pkgs) xmlsec; }; + pysatochip = callPackage ../development/python-modules/pysatochip { }; + pysc2 = callPackage ../development/python-modules/pysc2 { }; pyscard = callPackage ../development/python-modules/pyscard {