diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-09 20:53:22 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-09 20:53:22 +0100 |
commit | 2cd90660842327b062c6f5216a7cc662842af67e (patch) | |
tree | 06a572b1ee3f10339059a7d571f094101c1fa313 | |
parent | 81b0104d8512c7a4dfda701aaa613e4db064752a (diff) | |
download | nixlib-2cd90660842327b062c6f5216a7cc662842af67e.tar nixlib-2cd90660842327b062c6f5216a7cc662842af67e.tar.gz nixlib-2cd90660842327b062c6f5216a7cc662842af67e.tar.bz2 nixlib-2cd90660842327b062c6f5216a7cc662842af67e.tar.lz nixlib-2cd90660842327b062c6f5216a7cc662842af67e.tar.xz nixlib-2cd90660842327b062c6f5216a7cc662842af67e.tar.zst nixlib-2cd90660842327b062c6f5216a7cc662842af67e.zip |
python3Packages.pytile: init at 5.1.0
-rw-r--r-- | pkgs/development/python-modules/pytile/default.nix | 56 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytile/default.nix b/pkgs/development/python-modules/pytile/default.nix new file mode 100644 index 000000000000..d2fd99f6d166 --- /dev/null +++ b/pkgs/development/python-modules/pytile/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f38e64a29a87..779c30e8bb95 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6222,6 +6222,8 @@ in { pyeverlights = callPackage ../development/python-modules/pyeverlights { }; + pytile = callPackage ../development/python-modules/pytile { }; + pytimeparse = callPackage ../development/python-modules/pytimeparse { }; pytmx = callPackage ../development/python-modules/pytmx { }; |