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}:
|
, click, ecdsa, fido2, intelhex, pyserial, pyusb, requests}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "solo-python";
|
pname = "solo-python";
|
||||||
version = "0.0.15";
|
version = "0.0.18";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
|
disabled = pythonOlder "3.6"; # only python>=3.6 is supported
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "solokeys";
|
owner = "solokeys";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "14na9s65hxzx141bdv0j7rx1wi3cv85jzpdivsq1rwp6hdhiazr1";
|
sha256 = "01mgppjvxlr93vrgz7bzisghpg1vqyaj4cg5wngk0h499iyx4d9q";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: remove ASAP
|
# replaced pinned fido, with unrestricted fido version
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace pyproject.toml --replace "fido2 == 0.7.0" "fido2 >= 0.7.0"
|
sed -i '/fido2/c\"fido2",' pyproject.toml
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -28,6 +29,20 @@
|
|||||||
requests
|
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; {
|
meta = with lib; {
|
||||||
description = "Python tool and library for SoloKeys";
|
description = "Python tool and library for SoloKeys";
|
||||||
homepage = "https://github.com/solokeys/solo-python";
|
homepage = "https://github.com/solokeys/solo-python";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user