depot/third_party/nixpkgs/pkgs/development/python-modules/openaiauth/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

39 lines
791 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "openaiauth";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit version;
pname = "OpenAIAuth";
hash = "sha256-9SrptiheiM5s9YI6Ht68ahDGMFADWfBQgAWUBY3EEJ8=";
};
propagatedBuildInputs = [
requests
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"OpenAIAuth"
];
meta = with lib; {
description = "Library for authenticating with the OpenAI API";
homepage = "https://github.com/acheong08/OpenAIAuth";
changelog = "https://github.com/acheong08/OpenAIAuth/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ realsnick ];
};
}