nixpkgs/pkgs/development/python-modules/pytile/default.nix

59 lines
1.2 KiB
Nix
Raw Normal View History

2021-01-09 19:53:22 +00:00
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
2021-01-23 20:27:17 +00:00
, poetry-core
2021-01-09 19:53:22 +00:00
, pylint
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonAtLeast
}:
2021-01-23 20:27:17 +00:00
2021-01-09 19:53:22 +00:00
buildPythonPackage rec {
pname = "pytile";
2021-01-23 20:27:17 +00:00
version = "5.1.1";
2021-01-09 19:53:22 +00:00
disabled = pythonAtLeast "3.9";
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
2021-01-23 20:27:17 +00:00
sha256 = "sha256-bVoFTaK/Alemtc5I+Z/M9y/FWczvJ+P86R0DMD89/BM=";
2021-01-09 19:53:22 +00:00
};
format = "pyproject";
2021-01-23 20:27:17 +00:00
nativeBuildInputs = [ poetry-core ];
2021-01-09 19:53:22 +00:00
propagatedBuildInputs = [
aiohttp
pylint
];
checkInputs = [
aresponses
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
# Ignore the examples as they are prefixed with test_
pytestFlagsArray = [ "--ignore examples/" ];
pythonImportsCheck = [ "pytile" ];
__darwinAllowLocalNetworking = true;
2021-01-09 19:53:22 +00:00
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 ];
};
}