Unverified Commit c370fa75 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.openaiauth: add format

- disable on unsupported Python releases
- Update ordering
parent 5803226c
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:

buildPythonPackage rec {
  pname = "openaiauth";
  version = "2.0.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit version;
@@ -14,8 +18,11 @@ buildPythonPackage rec {
    hash = "sha256-wmVR+cN/uJ75l62uzmHqpvEcnjzi6CU0kQ2e/5LxkBw=";
  };

  propagatedBuildInputs = [ requests ];
  propagatedBuildInputs = [
    requests
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
@@ -23,10 +30,10 @@ buildPythonPackage rec {
  ];

  meta = with lib; {
    description = "A Python library for authenticating with the OpenAI API";
    license = licenses.mit;
    maintainers = with maintainers; [ realsnick ];
    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 ];
  };
}