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