Files
nixpkgs/pkgs/development/python-modules/subarulink/default.nix
2025-01-06 13:45:14 +01:00

60 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
stdiomask,
}:
buildPythonPackage rec {
pname = "subarulink";
version = "0.7.13";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "G-Two";
repo = "subarulink";
tag = "v${version}";
hash = "sha256-R6d9BaQDFSobiIsbI1I/eUaJt0VUU2ELdWU9xDyhuFc=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
stdiomask
];
nativeCheckInputs = [
cryptography
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "subarulink" ];
meta = with lib; {
description = "Python module for interacting with STARLINK-enabled vehicle";
homepage = "https://github.com/G-Two/subarulink";
changelog = "https://github.com/G-Two/subarulink/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
mainProgram = "subarulink";
};
}