1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00

python3Packages.pyserial-asyncio: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2021-10-02 23:26:00 +02:00
parent dedd0f6308
commit 775c2a236b

View file

@ -1,21 +1,31 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, pyserial }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pyserial
}:
buildPythonPackage rec {
pname = "pyserial-asyncio";
version = "0.6";
disabled = !isPy3k; # Doesn't support python older than 3.4
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-tgMpI+BenXXsF6WvmphCnEbSg5rfr4BgTVLg+qzXoy8=";
};
propagatedBuildInputs = [ pyserial ];
propagatedBuildInputs = [
pyserial
];
pythonImportsCheck = [
"serial_asyncio"
];
meta = with lib; {
description = "asyncio extension package for pyserial";
description = "Asyncio extension package for pyserial";
homepage = "https://github.com/pyserial/pyserial-asyncio";
license = licenses.bsd3;
maintainers = with maintainers; [ etu ];