python39Packages.aioprocessing: simplify disabled, add import check

This commit is contained in:
Sandro Jäckel
2021-08-26 23:57:44 +02:00
parent 4ba7ccf501
commit 03eec0aef3
@@ -1,13 +1,13 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, pythonOlder
}:
buildPythonPackage rec {
pname = "aioprocessing";
version = "1.1.0";
disabled = !(pythonAtLeast "3.4");
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
@@ -17,6 +17,8 @@ buildPythonPackage rec {
# Tests aren't included in pypi package
doCheck = false;
pythonImportsCheck = [ "aioprocessing" ];
meta = {
description = "A library that integrates the multiprocessing module with asyncio";
homepage = "https://github.com/dano/aioprocessing";