nixpkgs/pkgs/tools/security/onlykey-cli/default.nix
Martin Weinelt 607215653b
onlykey-cli: don't propagate cython
Propagating it will lead to multiple cython versions in the PYTHONPATH,
which will fail the build during pythonCatchConflictsPhase.
2024-03-27 18:35:28 +01:00

39 lines
863 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "onlykey-cli";
version = "1.2.10";
src = fetchPypi {
inherit version;
pname = "onlykey";
sha256 = "sha256-ZmQnyZx9YlIIxMMdZ0U2zb+QANfcwrtG7iR1LpgzmBQ=";
};
build-system = with python3Packages; [
cython
];
propagatedBuildInputs = with python3Packages; [
aenum
ecdsa
hidapi
onlykey-solo-python
prompt-toolkit
pynacl
six
];
# Requires having the physical onlykey (a usb security key)
doCheck = false;
pythonImportsCheck = [ "onlykey.client" ];
meta = with lib; {
description = "OnlyKey client and command-line tool";
mainProgram = "onlykey-cli";
homepage = "https://github.com/trustcrypto/python-onlykey";
license = licenses.mit;
maintainers = with maintainers; [ ranfdev ];
};
}