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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1014 B
Nix
Raw Permalink Normal View History

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pycryptodome,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aioairq";
version = "0.4.3";
2024-05-15 14:36:24 +00:00
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "CorantGmbH";
2024-05-15 14:36:24 +00:00
repo = "aioairq";
rev = "refs/tags/v${version}";
hash = "sha256-Bgzwu/9Eu3Miw0eFb0b9jbD8yuPcBlJFnVyom+CsZBE=";
};
build-system = [ setuptools ];
2024-05-15 14:36:24 +00:00
dependencies = [
aiohttp
pycryptodome
];
# Module has no tests
2024-05-15 14:36:24 +00:00
#doCheck = false;
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aioairq" ];
2024-05-15 14:36:24 +00:00
disabledTestPaths = [
# Tests require network access
"tests/test_core_on_device.py"
];
meta = with lib; {
description = "Library to retrieve data from air-Q devices";
homepage = "https://github.com/CorantGmbH/aioairq";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}