about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tiktoken/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/tiktoken/default.nix')
-rw-r--r--pkgs/development/python-modules/tiktoken/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/tiktoken/default.nix b/pkgs/development/python-modules/tiktoken/default.nix
index d7b8b6c1c631f..ffcead40165d8 100644
--- a/pkgs/development/python-modules/tiktoken/default.nix
+++ b/pkgs/development/python-modules/tiktoken/default.nix
@@ -9,7 +9,6 @@
   rustc,
   setuptools,
   setuptools-rust,
-  wheel,
   libiconv,
   requests,
   regex,
@@ -17,10 +16,10 @@
 }:
 let
   pname = "tiktoken";
-  version = "0.5.1";
+  version = "0.7.0";
   src = fetchPypi {
     inherit pname version;
-    hash = "sha256-J+dzVkIyAE9PgQ/R+FI2Zz7DpW7X8SBvye2GcOvtuXo=";
+    hash = "sha256-EHcmbpScJOApH2w1BDPG8JcTZezisXOiO8O5+d7+9rY=";
   };
   postPatch = ''
     cp ${./Cargo.lock} Cargo.lock
@@ -33,20 +32,19 @@ buildPythonPackage {
     src
     postPatch
     ;
-  format = "pyproject";
+  pyproject = true;
 
   disabled = pythonOlder "3.8";
 
-  nativeBuildInput = [
+  build-system = [
     setuptools
     setuptools-rust
-    wheel
   ];
 
   cargoDeps = rustPlatform.fetchCargoTarball {
     inherit src postPatch;
     name = "${pname}-${version}";
-    hash = "sha256-Q7XO+auj4tKDAGbqNn9pmJg8EJvooN2ie0lWwZVrld4=";
+    hash = "sha256-i0AQUu9ERDWBw0kjTTTyn4VHMig/k2/7wX2884MCGx8=";
   };
 
   nativeBuildInputs = [
@@ -58,7 +56,7 @@ buildPythonPackage {
 
   buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     requests
     regex
     blobfile