Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / subarulink / default.nix
blob1cff8ae459ff358dbfe98445f2dd7f39e6dbf575
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , cryptography
5 , fetchFromGitHub
6 , pytest-asyncio
7 , pytestCheckHook
8 , pythonOlder
9 , stdiomask
12 buildPythonPackage rec {
13   pname = "subarulink";
14   version = "0.7.11";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "G-Two";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-HKtToMh4dAUpA654tFkUEM9DLPGr9XRQK0ezYzNPzqk=";
24   };
26   propagatedBuildInputs = [
27     aiohttp
28     stdiomask
29   ];
31   nativeCheckInputs = [
32     cryptography
33     pytest-asyncio
34     pytestCheckHook
35   ];
37   postPatch = ''
38     substituteInPlace setup.cfg \
39       --replace "--cov=subarulink" ""
40   '';
42   __darwinAllowLocalNetworking = true;
44   preCheck = ''
45     export HOME=$(mktemp -d)
46   '';
48   pythonImportsCheck = [
49     "subarulink"
50   ];
52   meta = with lib; {
53     description = "Python module for interacting with STARLINK-enabled vehicle";
54     mainProgram = "subarulink";
55     homepage = "https://github.com/G-Two/subarulink";
56     changelog = "https://github.com/G-Two/subarulink/releases/tag/v${version}";
57     license = with licenses; [ asl20 ];
58     maintainers = with maintainers; [ fab ];
59   };