diff --git a/pkgs/development/python-modules/aresponses/default.nix b/pkgs/development/python-modules/aresponses/default.nix index c790f4804105..56093192d6c7 100644 --- a/pkgs/development/python-modules/aresponses/default.nix +++ b/pkgs/development/python-modules/aresponses/default.nix @@ -6,12 +6,15 @@ # buildInputs , pytest , pytest-asyncio +, isPy3k }: buildPythonPackage rec { pname = "aresponses"; version = "2.0.0"; + disabled = !isPy3k; + src = fetchPypi { inherit pname version; sha256 = "58693a6b715edfa830a20903ee1d1b2a791251923f311b3bebf113e8ff07bb35"; diff --git a/pkgs/development/python-modules/pyhaversion/default.nix b/pkgs/development/python-modules/pyhaversion/default.nix index 381ec45388bf..4fb28fb762dd 100644 --- a/pkgs/development/python-modules/pyhaversion/default.nix +++ b/pkgs/development/python-modules/pyhaversion/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, isPy3k # propagatedBuildInputs , aiohttp , async-timeout @@ -15,6 +16,9 @@ buildPythonPackage rec { pname = "pyhaversion"; version = "3.3.0"; + # needs aiohttp which is py3k-only + disabled = !isPy3k; + src = fetchPypi { inherit pname version; sha256 = "376a1b232a26035bc82d64affa1c4f312d782234fe5453e8d0f9e1350a97be5b";