Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5}: 6 7buildPythonPackage rec { 8 pname = "openaiauth"; 9 version = "0.3.6"; 10 11 src = fetchPypi { 12 inherit version; 13 pname = "OpenAIAuth"; 14 hash = "sha256-SaiTqs2HVv5ajUkrLJv24ed1+iJg5HqsCNe0IETkA00="; 15 }; 16 17 propagatedBuildInputs = [ requests ]; 18 19 doCheck = false; 20 21 pythonImportsCheck = [ 22 "OpenAIAuth" 23 ]; 24 25 meta = with lib; { 26 description = "A Python library for authenticating with the OpenAI API"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ realsnick ]; 29 homepage = "https://github.com/acheong08/OpenAIAuth"; 30 changelog = "https://github.com/acheong08/OpenAIAuth/releases/tag/${version}"; 31 }; 32}