nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 asynctest, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytest-asyncio, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pyversasense"; 13 version = "0.0.6"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "imstevenxyz"; 18 repo = "pyversasense"; 19 rev = "v${version}"; 20 sha256 = "vTaDEwImWDMInwti0Jj+j+RFEtXOOKtiH5wOMD6ZmJk="; 21 }; 22 23 propagatedBuildInputs = [ aiohttp ]; 24 25 doCheck = false; # asynctest unsupported on 3.11+ 26 27 nativeCheckInputs = [ 28 asynctest 29 pytest-asyncio 30 pytestCheckHook 31 ]; 32 33 enabledTestPaths = [ "tests/test.py" ]; 34 35 disabledTests = [ 36 # Tests are not properly mocking network requests 37 "test_device_mac" 38 "test_peripheral_id" 39 "test_peripheral_measurements" 40 "test_samples" 41 ]; 42 43 pythonImportsCheck = [ "pyversasense" ]; 44 45 meta = { 46 description = "Python library to communicate with the VersaSense API"; 47 homepage = "https://github.com/imstevenxyz/pyversasense"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ fab ]; 50 }; 51}