diff --git a/pkgs/development/python-modules/pure-protobuf/default.nix b/pkgs/development/python-modules/pure-protobuf/default.nix index 2a7082049703..ed413f8d8c95 100644 --- a/pkgs/development/python-modules/pure-protobuf/default.nix +++ b/pkgs/development/python-modules/pure-protobuf/default.nix @@ -4,18 +4,20 @@ , fetchFromGitHub , poetry-core , poetry-dynamic-versioning -, pydantic +, typing-extensions , pytestCheckHook , pytest-benchmark -, typing-extensions +, pytest-cov +, pydantic }: buildPythonPackage rec { pname = "pure-protobuf"; - version = "3.0.1"; # Komikku not launching w/ 3.0.0, #280551 + version = "3.0.1"; format = "pyproject"; - disabled = pythonOlder "3.7"; + # < 3.10 requires get-annotations which isn't packaged yet + disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "eigenein"; @@ -24,13 +26,10 @@ buildPythonPackage rec { hash = "sha256-sGKnta+agrpJkQB0twFkqRreD5WB2O/06g75N0ic4mc="; }; - postPatch = '' - sed -i "/addopts =/d" pyproject.toml - ''; - build-system = [ poetry-core poetry-dynamic-versioning + typing-extensions ]; dependencies = [ @@ -41,6 +40,7 @@ buildPythonPackage rec { pydantic pytestCheckHook pytest-benchmark + pytest-cov ]; pytestFlagsArray = [