about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-11-01 09:33:21 -0700
committerJon <jonringer@users.noreply.github.com>2019-11-04 08:58:36 -0800
commit5842a29159bf2b8287993706f17b3c424b47be0c (patch)
tree4acdaf417205f83b47611143f5df4ab97e2bdeae /pkgs/development/python-modules
parentb7dc9e131f5855d254717e2b2b054400b20aef8a (diff)
downloadnixlib-5842a29159bf2b8287993706f17b3c424b47be0c.tar
nixlib-5842a29159bf2b8287993706f17b3c424b47be0c.tar.gz
nixlib-5842a29159bf2b8287993706f17b3c424b47be0c.tar.bz2
nixlib-5842a29159bf2b8287993706f17b3c424b47be0c.tar.lz
nixlib-5842a29159bf2b8287993706f17b3c424b47be0c.tar.xz
nixlib-5842a29159bf2b8287993706f17b3c424b47be0c.tar.zst
nixlib-5842a29159bf2b8287993706f17b3c424b47be0c.zip
python3Packages.solo-python: 0.0.15 -> 0.0.18
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/solo-python/default.nix25
1 files changed, 20 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/solo-python/default.nix b/pkgs/development/python-modules/solo-python/default.nix
index 7b2b578eed8c..829874f25ad5 100644
--- a/pkgs/development/python-modules/solo-python/default.nix
+++ b/pkgs/development/python-modules/solo-python/default.nix
@@ -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";