diff --git a/pkgs/development/python-modules/pyquil/default.nix b/pkgs/development/python-modules/pyquil/default.nix index b79ed9dd5622..f182074c1db9 100644 --- a/pkgs/development/python-modules/pyquil/default.nix +++ b/pkgs/development/python-modules/pyquil/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, deprecated , fetchFromGitHub , importlib-metadata , ipython @@ -20,13 +21,15 @@ , retry , rpcq , scipy +, tenacity +, types-deprecated , types-python-dateutil , types-retry }: buildPythonPackage rec { pname = "pyquil"; - version = "3.5.0"; + version = "3.5.2"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -35,7 +38,7 @@ buildPythonPackage rec { owner = "rigetti"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-Fr9SnAzDHaSKp0AYra/gCZOJ5Fzcx1EO56ahZQZP2Ss="; + hash = "sha256-Iarmi3W4OFa72BEZPLJqMZghYMv1UrDERc4yQjchXj8="; }; pythonRelaxDeps = [ @@ -49,6 +52,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ + deprecated lark networkx numpy @@ -56,6 +60,8 @@ buildPythonPackage rec { retry rpcq scipy + tenacity + types-deprecated types-python-dateutil types-retry ] ++ lib.optionals (pythonOlder "3.8") [ diff --git a/pkgs/development/python-modules/types-deprecated/default.nix b/pkgs/development/python-modules/types-deprecated/default.nix new file mode 100644 index 000000000000..cc1102c03553 --- /dev/null +++ b/pkgs/development/python-modules/types-deprecated/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "types-deprecated"; + version = "1.2.9.2"; + format = "setuptools"; + + src = fetchPypi { + pname = "types-Deprecated"; + inherit version; + hash = "sha256-kWFv1nRfi/LUV/u779FM3kODjp8AoEtaDq5Pwfe7xpc="; + }; + + # Modules has no tests + doCheck = false; + + pythonImportsCheck = [ + "deprecated-stubs" + ]; + + meta = with lib; { + description = "Typing stubs for Deprecated"; + homepage = "https://pypi.org/project/types-Deprecated/"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2b737a7bbbb1..7fef6b0d2445 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12440,6 +12440,8 @@ self: super: with self; { types-decorator = callPackage ../development/python-modules/types-decorator { }; + types-deprecated = callPackage ../development/python-modules/types-deprecated { }; + types-docutils = callPackage ../development/python-modules/types-docutils { }; types-enum34 = callPackage ../development/python-modules/types-enum34 { };