1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 certifi, 6 cryptography, 7 ecdsa, 8 pyaes, 9 pyopenssl, 10 pyscard, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "pysatochip"; 16 version = "0.17.0"; 17 format = "setuptools"; 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "toporin"; 22 repo = "pysatochip"; 23 tag = "v${version}"; 24 hash = "sha256-9QenE9YpgrKwiN9kpS+KWdqFeba7AGXDneW5p+9/t1A="; 25 }; 26 27 propagatedBuildInputs = [ 28 cryptography 29 ecdsa 30 pyaes 31 pyopenssl 32 pyscard 33 ]; 34 35 nativeCheckInputs = [ certifi ]; 36 37 pythonImportsCheck = [ "pysatochip" ]; 38 39 meta = with lib; { 40 description = "Simple python library to communicate with a Satochip hardware wallet"; 41 homepage = "https://github.com/Toporin/pysatochip"; 42 license = licenses.lgpl3Only; 43 maintainers = with maintainers; [ oxalica ]; 44 }; 45}