lol

python310Packages.tokentrim: init at unstable-2023-09-07

python310Packages.tokentrim: disable tests

+41
+39
pkgs/development/python-modules/tokentrim/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , poetry-core 5 + , tiktoken 6 + }: 7 + 8 + buildPythonPackage { 9 + pname = "tokentrim"; 10 + version = "unstable-2023-09-07"; 11 + format = "pyproject"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "KillianLucas"; 15 + repo = "tokentrim"; 16 + rev = "e98ad3a2ca0e321a7347f76c30be584175495139"; 17 + hash = "sha256-95xitHnbFFaj0xPuLMWvIvuJzoCO3VSd592X1RI9h3A="; 18 + }; 19 + 20 + nativeBuildInputs = [ 21 + poetry-core 22 + ]; 23 + 24 + propagatedBuildInputs = [ 25 + tiktoken 26 + ]; 27 + 28 + pythonImportsCheck = [ "tokentrim" ]; 29 + 30 + # tests connect to openai 31 + doCheck = false; 32 + 33 + meta = with lib; { 34 + description = "Easily trim 'messages' arrays for use with GPTs"; 35 + homepage = "https://github.com/KillianLucas/tokentrim"; 36 + license = licenses.mit; 37 + maintainers = with maintainers; [ happysalada ]; 38 + }; 39 + }
+2
pkgs/top-level/python-packages.nix
··· 12933 12933 12934 12934 tokenlib = callPackage ../development/python-modules/tokenlib { }; 12935 12935 12936 + tokentrim = callPackage ../development/python-modules/tokentrim { }; 12937 + 12936 12938 tololib = callPackage ../development/python-modules/tololib { }; 12937 12939 12938 12940 toml = callPackage ../development/python-modules/toml { };