nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 tls-client,
7}:
8
9buildPythonPackage rec {
10 pname = "openaiauth";
11 version = "3.0.0";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit version;
16 pname = "OpenAIAuth";
17 hash = "sha256-9SrptiheiM5s9YI6Ht68ahDGMFADWfBQgAWUBY3EEJ8=";
18 };
19
20 nativeBuildInputs = [ setuptools ];
21
22 propagatedBuildInputs = [ tls-client ];
23
24 # Module has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [ "OpenAIAuth" ];
28
29 meta = {
30 description = "Library for authenticating with the OpenAI API";
31 homepage = "https://github.com/acheong08/OpenAIAuth";
32 changelog = "https://github.com/acheong08/OpenAIAuth/releases/tag/${version}";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ logger ];
35 };
36}