Files
nixpkgs/pkgs/development/python-modules/solo-python/default.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

69 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
flit,
click,
cryptography,
ecdsa,
fido2,
intelhex,
pyserial,
pyusb,
requests,
}:
buildPythonPackage rec {
pname = "solo-python";
version = "0.1.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "solokeys";
repo = pname;
rev = version;
hash = "sha256-XVPYr7JwxeZfZ68+vQ7a7MNiAfJ2bvMbM3R1ryVJ+OU=";
};
nativeBuildInputs = [ flit ];
propagatedBuildInputs = [
click
cryptography
ecdsa
fido2
intelhex
pyserial
pyusb
requests
];
preBuild = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [
"solo"
"solo.cli"
"solo.commands"
"solo.fido2"
"solo.operations"
];
meta = with lib; {
description = "Python tool and library for SoloKeys Solo 1";
homepage = "https://github.com/solokeys/solo1-cli";
maintainers = with maintainers; [ wucke13 ];
license = with licenses; [
asl20
mit
];
# not compatible with fido2 >= 1.0.0
# https://github.com/solokeys/solo1-cli/issues/157
broken = versionAtLeast fido2.version "1.0.0";
};
}