depot/third_party/nixpkgs/pkgs/development/python-modules/aioruuvigateway/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
922 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
bluetooth-data-tools,
httpx,
pytest-asyncio,
pytest-httpx,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aioruuvigateway";
version = "0.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "akx";
repo = "aioruuvigateway";
rev = "refs/tags/v${version}";
hash = "sha256-Etv+kPFYEK79hpDeNmDfuyNj1vJ6udry1u+TRO5gLV4=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
bluetooth-data-tools
httpx
];
nativeCheckInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
pythonImportsCheck = [ "aioruuvigateway" ];
meta = with lib; {
description = "An asyncio-native library for requesting data from a Ruuvi Gateway";
homepage = "https://github.com/akx/aioruuvigateway";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}