diff --git a/pkgs/applications/misc/shell-genie/default.nix b/pkgs/applications/misc/shell-genie/default.nix index 1429aabcd806..7225eb4c3fc0 100644 --- a/pkgs/applications/misc/shell-genie/default.nix +++ b/pkgs/applications/misc/shell-genie/default.nix @@ -8,18 +8,16 @@ with python3.pkgs; buildPythonPackage rec { pname = "shell-genie"; - version = "unstable-2023-01-27"; + version = "0.2.6"; format = "pyproject"; - src = fetchFromGitHub { - owner = "dylanjcastillo"; - repo = pname; - rev = "d6da42a4426e6058a0b5ae07837d8c003cd1239e"; - hash = "sha256-MGhQaTcl3KjAJXorOmMRec07LxH02T81rNbV2mYEpRA="; + src = fetchPypi { + pname = "shell_genie"; + inherit version; + hash = "sha256-MgQFHsBXrihfWBB/cz45ITf8oJG2gSenf1wzdbrAbjw="; }; nativeBuildInputs = [ - poetry poetry-core ]; @@ -35,9 +33,14 @@ buildPythonPackage rec { # No tests available doCheck = false; + pythonImportsCheck = [ + "shell_genie" + ]; + meta = with lib; { description = "Describe your shell commands in natural language"; homepage = "https://github.com/dylanjcastillo/shell-genie"; + # https://github.com/dylanjcastillo/shell-genie/issues/3 license = licenses.unfree; maintainers = with maintainers; [ onny ]; }; diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index ede1a7a3d84f..92f2e327eb34 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -23,7 +23,7 @@ buildPythonPackage rec { pname = "openai"; - version = "0.26.5"; + version = "0.27.0"; format = "setuptools"; disabled = pythonOlder "3.7.1"; @@ -31,8 +31,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "openai"; repo = "openai-python"; - rev = "v${version}"; - hash = "sha256-eKU+WRFf7f1yH63vcoQ9dVeqhJXBqMJGpk/9AoEgR0M="; + rev = "refs/tags/v${version}"; + hash = "sha256-pXttGvnApYuwkWU7kCDNjw0rjHD5AyUvujfvpDVjgxM="; }; propagatedBuildInputs = [ @@ -91,6 +91,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python client library for the OpenAI API"; homepage = "https://github.com/openai/openai-python"; + changelog = "https://github.com/openai/openai-python/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ malo ]; };