Merge pull request #97560 from makefu/pkgs/python-maintainer/fix-eval

aresponses,pyhaversion: disable for py2
This commit is contained in:
Jörg Thalheim 2020-09-09 18:30:08 +02:00 committed by GitHub
commit b5118540bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -6,12 +6,15 @@
# buildInputs # buildInputs
, pytest , pytest
, pytest-asyncio , pytest-asyncio
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aresponses"; pname = "aresponses";
version = "2.0.0"; version = "2.0.0";
disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "58693a6b715edfa830a20903ee1d1b2a791251923f311b3bebf113e8ff07bb35"; sha256 = "58693a6b715edfa830a20903ee1d1b2a791251923f311b3bebf113e8ff07bb35";

View file

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy3k
# propagatedBuildInputs # propagatedBuildInputs
, aiohttp , aiohttp
, async-timeout , async-timeout
@ -15,6 +16,9 @@ buildPythonPackage rec {
pname = "pyhaversion"; pname = "pyhaversion";
version = "3.3.0"; version = "3.3.0";
# needs aiohttp which is py3k-only
disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "376a1b232a26035bc82d64affa1c4f312d782234fe5453e8d0f9e1350a97be5b"; sha256 = "376a1b232a26035bc82d64affa1c4f312d782234fe5453e8d0f9e1350a97be5b";