1{ lib 2, aiohttp 3, asynctest 4, buildPythonPackage 5, fetchFromGitHub 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pyversasense"; 13 version = "0.0.6"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "imstevenxyz"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "vTaDEwImWDMInwti0Jj+j+RFEtXOOKtiH5wOMD6ZmJk="; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 ]; 28 29 checkInputs = [ 30 asynctest 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pytestFlagsArray = [ 36 "tests/test.py" 37 ]; 38 39 disabledTests = [ 40 # Tests are not properly mocking network requests 41 "test_device_mac" 42 "test_peripheral_id" 43 "test_peripheral_measurements" 44 "test_samples" 45 ]; 46 47 pythonImportsCheck = [ 48 "pyversasense" 49 ]; 50 51 meta = with lib; { 52 description = "Python library to communicate with the VersaSense API"; 53 homepage = "https://github.com/imstevenxyz/pyversasense"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}