nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 58 lines 1.2 kB view raw
1{ lib 2, aiohttp 3, aresponses 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pylint 8, pytest-aiohttp 9, pytest-asyncio 10, pytestCheckHook 11, pythonAtLeast 12}: 13 14buildPythonPackage rec { 15 pname = "pytile"; 16 version = "5.2.1"; 17 disabled = pythonAtLeast "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "bachya"; 21 repo = pname; 22 rev = version; 23 sha256 = "0d63xga4gjlfl9fzv3i4j605rrx2qgbzam6cl609ny96s8q8h1px"; 24 }; 25 26 format = "pyproject"; 27 28 nativeBuildInputs = [ poetry-core ]; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 pylint 33 ]; 34 35 checkInputs = [ 36 aresponses 37 pytest-aiohttp 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 # Ignore the examples as they are prefixed with test_ 43 pytestFlagsArray = [ "--ignore examples/" ]; 44 pythonImportsCheck = [ "pytile" ]; 45 46 __darwinAllowLocalNetworking = true; 47 48 meta = with lib; { 49 description = " Python API for Tile Bluetooth trackers"; 50 longDescription = '' 51 pytile is a simple Python library for retrieving information on Tile 52 Bluetooth trackers (including last location and more). 53 ''; 54 homepage = "https://github.com/bachya/pytile"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}