depot/third_party/nixpkgs/pkgs/development/python-modules/subarulink/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

64 lines
1.1 KiB
Nix

{ lib
, aiohttp
, asynctest
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, stdiomask
}:
buildPythonPackage rec {
pname = "subarulink";
version = "0.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "G-Two";
repo = pname;
rev = "v${version}";
hash = "sha256-esZ+nIHIXKfilb8dBFbAbQQFI6fFRUcoFVCPdnqGXYw=";
};
propagatedBuildInputs = [
aiohttp
stdiomask
];
checkInputs = [
asynctest
cryptography
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
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 ];
};
}