Merge pull request #108883 from fabaff/pytile
This commit is contained in:
commit
9f3aa1bb43
56
pkgs/development/python-modules/pytile/default.nix
Normal file
56
pkgs/development/python-modules/pytile/default.nix
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
{ lib
|
||||||
|
, aiohttp
|
||||||
|
, async-timeout
|
||||||
|
, aresponses
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry
|
||||||
|
, pylint
|
||||||
|
, pytest-aiohttp
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonAtLeast
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytile";
|
||||||
|
version = "5.1.0";
|
||||||
|
disabled = pythonAtLeast "3.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bachya";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0hdyb8ca4ihqf7yfkr3hbpkwz7g182ycra151y5dxn0319fillc3";
|
||||||
|
};
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ poetry ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
pylint
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
aresponses
|
||||||
|
pytest-aiohttp
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
# Ignore the examples as they are prefixed with test_
|
||||||
|
pytestFlagsArray = [ "--ignore examples/" ];
|
||||||
|
pythonImportsCheck = [ "pytile" ];
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -838,7 +838,7 @@
|
|||||||
"threshold" = ps: with ps; [ ];
|
"threshold" = ps: with ps; [ ];
|
||||||
"tibber" = ps: with ps; [ ]; # missing inputs: pyTibber
|
"tibber" = ps: with ps; [ ]; # missing inputs: pyTibber
|
||||||
"tikteck" = ps: with ps; [ ]; # missing inputs: tikteck
|
"tikteck" = ps: with ps; [ ]; # missing inputs: tikteck
|
||||||
"tile" = ps: with ps; [ ]; # missing inputs: pytile
|
"tile" = ps: with ps; [ pytile ];
|
||||||
"time_date" = ps: with ps; [ ];
|
"time_date" = ps: with ps; [ ];
|
||||||
"timer" = ps: with ps; [ ];
|
"timer" = ps: with ps; [ ];
|
||||||
"tmb" = ps: with ps; [ ]; # missing inputs: tmb
|
"tmb" = ps: with ps; [ ]; # missing inputs: tmb
|
||||||
|
@ -6230,6 +6230,8 @@ in {
|
|||||||
|
|
||||||
pyeverlights = callPackage ../development/python-modules/pyeverlights { };
|
pyeverlights = callPackage ../development/python-modules/pyeverlights { };
|
||||||
|
|
||||||
|
pytile = callPackage ../development/python-modules/pytile { };
|
||||||
|
|
||||||
pytimeparse = callPackage ../development/python-modules/pytimeparse { };
|
pytimeparse = callPackage ../development/python-modules/pytimeparse { };
|
||||||
|
|
||||||
pytmx = callPackage ../development/python-modules/pytmx { };
|
pytmx = callPackage ../development/python-modules/pytmx { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user