mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
python3Packages.solo-python: 0.0.15 -> 0.0.18
This commit is contained in:
parent
b7dc9e131f
commit
5842a29159
@ -1,21 +1,22 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||
, click, ecdsa, fido2, intelhex, pyserial, pyusb, requests}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "solo-python";
|
||||
version = "0.0.15";
|
||||
version = "0.0.18";
|
||||
format = "flit";
|
||||
disabled = pythonOlder "3.6"; # only python>=3.6 is supported
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "solokeys";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "14na9s65hxzx141bdv0j7rx1wi3cv85jzpdivsq1rwp6hdhiazr1";
|
||||
sha256 = "01mgppjvxlr93vrgz7bzisghpg1vqyaj4cg5wngk0h499iyx4d9q";
|
||||
};
|
||||
|
||||
# TODO: remove ASAP
|
||||
# replaced pinned fido, with unrestricted fido version
|
||||
patchPhase = ''
|
||||
substituteInPlace pyproject.toml --replace "fido2 == 0.7.0" "fido2 >= 0.7.0"
|
||||
sed -i '/fido2/c\"fido2",' pyproject.toml
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -28,6 +29,20 @@
|
||||
requests
|
||||
];
|
||||
|
||||
# allow for writable directory for darwin
|
||||
preBuild = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
# repo doesn't contain tests, ensure imports aren't broken
|
||||
pythonImportsCheck = [
|
||||
"solo"
|
||||
"solo.cli"
|
||||
"solo.commands"
|
||||
"solo.fido2"
|
||||
"solo.operations"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python tool and library for SoloKeys";
|
||||
homepage = "https://github.com/solokeys/solo-python";
|
||||
|
Loading…
Reference in New Issue
Block a user