Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / subarulink / default.nix
blob603acb73884b405eb48733429ada31511eb499ef
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.9";
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-dRhZWV58tHoGpJ2bDWFov1timTHYnqTPILySauutyzg=";
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     homepage = "https://github.com/G-Two/subarulink";
55     changelog = "https://github.com/G-Two/subarulink/releases/tag/v${version}";
56     license = with licenses; [ asl20 ];
57     maintainers = with maintainers; [ fab ];
58   };