depot/third_party/nixpkgs/pkgs/development/python-modules/openaiauth/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

39 lines
791 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "openaiauth";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit version;
pname = "OpenAIAuth";
hash = "sha256-wmVR+cN/uJ75l62uzmHqpvEcnjzi6CU0kQ2e/5LxkBw=";
};
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 ];
};
}