mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
c370fa7514
- disable on unsupported Python releases - Update ordering
40 lines
791 B
Nix
40 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 ];
|
|
};
|
|
}
|