python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / pynitrokey / default.nix
blob1f36eda5ab3d5c872998dc954aed7f7d3fb286ef
1 { python3Packages, lib, nrfutil  }:
3 with python3Packages;
5 buildPythonApplication rec {
6   pname = "pynitrokey";
7   version = "0.4.27";
8   format = "flit";
10   src = fetchPypi {
11     inherit pname version;
12     sha256 = "sha256-aWQhMvATcDtyBtj38mGnypkKIqKQgneBzWDh5o/5Wkc=";
13   };
15   propagatedBuildInputs = [
16     click
17     cryptography
18     ecdsa
19     fido2
20     intelhex
21     nrfutil
22     pyserial
23     pyusb
24     requests
25     pygments
26     python-dateutil
27     spsdk
28     urllib3
29     cffi
30     cbor
31     nkdfu
32   ];
34   # spsdk is patched to allow for newer cryptography
35   postPatch = ''
36     substituteInPlace pyproject.toml \
37         --replace "cryptography >=3.4.4,<37" "cryptography"
38   '';
40   # no tests
41   doCheck = false;
43   pythonImportsCheck = [ "pynitrokey" ];
45   meta = with lib; {
46     description = "Python client for Nitrokey devices";
47     homepage = "https://github.com/Nitrokey/pynitrokey";
48     license = with licenses; [ asl20 mit ];
49     maintainers = with maintainers; [ frogamic ];
50     mainProgram = "nitropy";
51   };