1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pytile/default.nix

63 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
2021-07-02 10:15:37 +01:00
, pythonOlder
2021-01-09 19:53:22 +00:00
}:
2021-01-23 20:27:17 +00:00
2021-01-09 19:53:22 +00:00
buildPythonPackage rec {
pname = "pytile";
2021-07-27 09:52:36 +01:00
version = "5.2.3";
2021-07-02 10:15:37 +01:00
format = "pyproject";
disabled = pythonOlder "3.7";
2021-01-09 19:53:22 +00:00
src = fetchFromGitHub {
owner = "bachya";
repo = pname;
rev = version;
2021-07-27 09:52:36 +01:00
sha256 = "01gxq6dbqjmsqndjcbqv79wd2wgs7krm0rn47k883gh2xg9sn606";
2021-01-09 19:53:22 +00:00
};
2021-07-02 10:15:37 +01:00
nativeBuildInputs = [
poetry-core
];
2021-01-09 19:53:22 +00:00
propagatedBuildInputs = [
aiohttp
pylint
];
checkInputs = [
aresponses
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
2021-07-02 10:15:37 +01:00
disabledTestPaths = [
# Ignore the examples as they are prefixed with test_
"examples/"
];
2021-01-09 19:53:22 +00:00
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 ];
};
}