diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-11 09:17:10 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-11 09:17:10 +0100 |
commit | 67dbb62e4a5a9ac378cb9b0cdf99c2d5851ce010 (patch) | |
tree | d1cfb699ae7e037971923dca97d0e96e54b624a3 /pkgs/development/python-modules/subarulink | |
parent | 12a7ca1e39eb1dbc421ad5cdaf24c4f0684dc854 (diff) |
python3Packages.subarulink: init at 0.3.11
Diffstat (limited to 'pkgs/development/python-modules/subarulink')
-rw-r--r-- | pkgs/development/python-modules/subarulink/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/subarulink/default.nix b/pkgs/development/python-modules/subarulink/default.nix new file mode 100644 index 0000000000000..5b6362b76a147 --- /dev/null +++ b/pkgs/development/python-modules/subarulink/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, aiohttp +, asynctest +, stdiomask +, cryptography +, pytestcov +, pytest-asyncio +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "subarulink"; + version = "0.3.11"; + + src = fetchFromGitHub { + owner = "G-Two"; + repo = pname; + rev = "subaru-v${version}"; + sha256 = "1ink9bhph6blidnfsqwq01grhp7ghacmkd4vzgb9hnhl9l52s1jq"; + }; + + propagatedBuildInputs = [ aiohttp stdiomask ]; + + checkInputs = [ + asynctest + cryptography + pytest-asyncio + pytestcov + pytestCheckHook + ]; + + __darwinAllowLocalNetworking = true; + + pythonImportsCheck = [ "subarulink" ]; + + meta = with lib; { + description = "Python module for interacting with STARLINK-enabled vehicle"; + homepage = "https://github.com/G-Two/subarulink"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} |