pythonPackages.pytest-asyncio: enable only for python3
This commit is contained in:
parent
78db95cd52
commit
8adb26319f
@ -1,9 +1,11 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchurl, pytest }:
|
{ stdenv, buildPythonPackage, fetchurl, pytest, isPy3k }:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "pytest-asyncio";
|
pname = "pytest-asyncio";
|
||||||
version = "0.5.0";
|
version = "0.5.0";
|
||||||
|
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://pypi/p/${pname}/${name}.tar.gz";
|
url = "mirror://pypi/p/${pname}/${name}.tar.gz";
|
||||||
sha256 = "03sxq8fglr4lw4y6wqlbli9ypr65fxzx6hlpn5wpccx8v5472iff";
|
sha256 = "03sxq8fglr4lw4y6wqlbli9ypr65fxzx6hlpn5wpccx8v5472iff";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user