My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pytile/default.nix

63 lines
1.2 KiB

{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytile";
version = "2022.02.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
sha256 = "sha256-IGjM9yU/3EjO9sV1ZZUX7RUL/a6CcMPzANhVMTcbZGU=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [
# Ignore the examples as they are prefixed with test_
"examples/"
];
pythonImportsCheck = [
"pytile"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = " Python API for Tile Bluetooth trackers";
longDescription = ''
pytile is a simple Python library for retrieving information on Tile
Bluetooth trackers (including last location and more).
'';
homepage = "https://github.com/bachya/pytile";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}