mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
Merge pull request #195816 from jojosch/fix-pynitrokey
pynitrokey: fix build and update to 0.4.31
This commit is contained in:
commit
a9fc1a78bb
39
pkgs/development/python-modules/tlv8/default.nix
Normal file
39
pkgs/development/python-modules/tlv8/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "tlv8";
|
||||||
|
version = "0.10.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
# pypi does not contain test files
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jlusiardi";
|
||||||
|
repo = "tlv8_python";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-G35xMFYasKD3LnGi9q8wBmmFvqgtg0HPdC+y82nxRWA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"tlv8"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Type-Length-Value8 (TLV8) for Python";
|
||||||
|
longDescription = ''
|
||||||
|
Python module to handle type-length-value (TLV) encoded data 8-bit type, 8-bit length, and N-byte
|
||||||
|
value as described within the Apple HomeKit Accessory Protocol Specification Non-Commercial Version
|
||||||
|
Release R2.
|
||||||
|
'';
|
||||||
|
homepage = "https://github.com/jlusiardi/tlv8_python";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ jojosch ];
|
||||||
|
};
|
||||||
|
}
|
@ -4,12 +4,12 @@ with python3Packages;
|
|||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "pynitrokey";
|
pname = "pynitrokey";
|
||||||
version = "0.4.27";
|
version = "0.4.31";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-aWQhMvATcDtyBtj38mGnypkKIqKQgneBzWDh5o/5Wkc=";
|
sha256 = "sha256-nqw5wUzQxKCBzYBRhqB6v7WWrF1Ojf8z6Kf1YUA9+wU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -29,13 +29,18 @@ buildPythonApplication rec {
|
|||||||
cffi
|
cffi
|
||||||
cbor
|
cbor
|
||||||
nkdfu
|
nkdfu
|
||||||
|
fido2
|
||||||
|
tlv8
|
||||||
];
|
];
|
||||||
|
|
||||||
# spsdk is patched to allow for newer cryptography
|
nativeBuildInputs = [
|
||||||
postPatch = ''
|
pythonRelaxDepsHook
|
||||||
substituteInPlace pyproject.toml \
|
];
|
||||||
--replace "cryptography >=3.4.4,<37" "cryptography"
|
|
||||||
'';
|
pythonRelaxDeps = [
|
||||||
|
"cryptography"
|
||||||
|
"spsdk"
|
||||||
|
];
|
||||||
|
|
||||||
# no tests
|
# no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -11721,6 +11721,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
tls-parser = callPackage ../development/python-modules/tls-parser { };
|
tls-parser = callPackage ../development/python-modules/tls-parser { };
|
||||||
|
|
||||||
|
tlv8 = callPackage ../development/python-modules/tlv8 { };
|
||||||
|
|
||||||
tmb = callPackage ../development/python-modules/tmb { };
|
tmb = callPackage ../development/python-modules/tmb { };
|
||||||
|
|
||||||
todoist = callPackage ../development/python-modules/todoist { };
|
todoist = callPackage ../development/python-modules/todoist { };
|
||||||
|
Loading…
Reference in New Issue
Block a user