1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
bleak,
|
|
buildPythonPackage,
|
|
ecpy,
|
|
fetchPypi,
|
|
future,
|
|
hidapi,
|
|
nfcpy,
|
|
pillow,
|
|
protobuf,
|
|
pycrypto,
|
|
pycryptodomex,
|
|
pyelftools,
|
|
python-gnupg,
|
|
python-u2flib-host,
|
|
setuptools,
|
|
setuptools-scm,
|
|
websocket-client,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ledgerblue";
|
|
version = "0.1.55";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-6s2V8cXik6jEg8z3UK49qVwodPbwXMIkWk7iJ7OY0rM=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
pythonRelaxDeps = [ "protobuf" ];
|
|
|
|
dependencies = [
|
|
ecpy
|
|
future
|
|
hidapi
|
|
nfcpy
|
|
pillow
|
|
protobuf
|
|
pycrypto
|
|
pycryptodomex
|
|
pyelftools
|
|
python-gnupg
|
|
python-u2flib-host
|
|
websocket-client
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ bleak ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ledgerblue" ];
|
|
|
|
meta = {
|
|
description = "Python library to communicate with Ledger Blue/Nano S";
|
|
homepage = "https://github.com/LedgerHQ/blue-loader-python";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ np ];
|
|
};
|
|
}
|