uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
57
pkgs/development/python-modules/openai/default.nix
Normal file
57
pkgs/development/python-modules/openai/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# Python dependencies
|
||||
, openpyxl
|
||||
, pandas
|
||||
, pandas-stubs
|
||||
, requests
|
||||
, tqdm
|
||||
, wandb
|
||||
|
||||
# Check dependencies
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openai";
|
||||
version = "0.19.0";
|
||||
|
||||
disabled = pythonOlder "3.7.1";
|
||||
|
||||
# Use GitHub source since PyPi source does not include tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "openai";
|
||||
repo = "openai-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-v/EBmKIzHGPR2KGLUqyWlTSZjV2MqALYRRofCXRjH24=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
openpyxl
|
||||
pandas
|
||||
pandas-stubs
|
||||
requests
|
||||
tqdm
|
||||
wandb
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "openai" ];
|
||||
checkInputs = [ pytestCheckHook pytest-mock ];
|
||||
pytestFlagsArray = [ "openai/tests" ];
|
||||
OPENAI_API_KEY = "sk-foo";
|
||||
disabledTestPaths = [
|
||||
"openai/tests/test_endpoints.py" # requires a real API key
|
||||
"openai/tests/test_file_cli.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client library for the OpenAI API";
|
||||
homepage = "https://github.com/openai/openai-python";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.malo ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue