2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
tls-client,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openaiauth";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.0.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "OpenAIAuth";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-9SrptiheiM5s9YI6Ht68ahDGMFADWfBQgAWUBY3EEJ8=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ tls-client ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# Module has no tests
|
2023-03-15 16:39:30 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "OpenAIAuth" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "Library for authenticating with the OpenAI API";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/acheong08/OpenAIAuth";
|
|
|
|
changelog = "https://github.com/acheong08/OpenAIAuth/releases/tag/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ realsnick ];
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|