Merge pull request #154732 from frogamic/master

This commit is contained in:
Sandro 2022-01-26 14:49:53 +01:00 committed by GitHub
commit 18891e051f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchPypi, fire, tqdm, intelhex, libusb1 }:
buildPythonPackage rec {
pname = "nkdfu";
version = "0.1";
format = "flit";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Y8GonfCBi3BNMhZ99SN6/SDSa0+dbfPIMPoVzALwH5A=";
};
propagatedBuildInputs = [
fire
tqdm
intelhex
libusb1
];
# no tests
doCheck = false;
pythonImportsCheck = [ "nkdfu" ];
meta = with lib; {
description = "Python tool for Nitrokeys' firmware update";
homepage = "https://github.com/Nitrokey/nkdfu";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ frogamic ];
};
}

View file

@ -0,0 +1,44 @@
{ python3Packages, lib }:
with python3Packages;
buildPythonApplication rec {
pname = "pynitrokey";
version = "0.4.9";
format = "flit";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-mhH6mVgLRX87PSGTFkj1TE75jU1lwcaRZWbC67T+vWo=";
};
propagatedBuildInputs = [
click
cryptography
ecdsa
fido2
intelhex
pyserial
pyusb
requests
pygments
python-dateutil
urllib3
cffi
cbor
nkdfu
];
# no tests
doCheck = false;
pythonImportsCheck = [ "pynitrokey" ];
meta = with lib; {
description = "Python client for Nitrokey devices";
homepage = "https://github.com/Nitrokey/pynitrokey";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ frogamic ];
mainProgram = "nitropy";
};
}

View file

@ -34203,6 +34203,8 @@ with pkgs;
xrq = callPackage ../applications/misc/xrq { };
pynitrokey = callPackage ../tools/security/pynitrokey { };
nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };
nitrokey-udev-rules = callPackage ../tools/security/nitrokey-app/udev-rules.nix { };

View file

@ -5405,6 +5405,8 @@ in {
nix-prefetch-github = callPackage ../development/python-modules/nix-prefetch-github { };
nkdfu = callPackage ../development/python-modules/nkdfu { };
nltk = callPackage ../development/python-modules/nltk { };
nmapthon2 = callPackage ../development/python-modules/nmapthon2 { };