depot/third_party/nixpkgs/pkgs/development/python-modules/subarulink/default.nix
Default email 5cae67db9e Project import generated by Copybara.
GitOrigin-RevId: b59c06dc92f8d03660eb4155754d93a6c34cda83
2021-07-17 23:14:59 +02:00

55 lines
1 KiB
Nix

{ lib
, aiohttp
, asynctest
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, stdiomask
}:
buildPythonPackage rec {
pname = "subarulink";
version = "0.3.14";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "G-Two";
repo = pname;
rev = "v${version}";
sha256 = "0xwiw50xc0k8r00k33crsl5wb01n2dz5rzhy96y7vr3zj4kfypsp";
};
propagatedBuildInputs = [
aiohttp
stdiomask
];
checkInputs = [
asynctest
cryptography
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg --replace "--cov=subarulink" ""
'';
__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";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}