33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{ lib
|
|
, aiofiles
|
|
, aiohttp
|
|
, async_generator
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pypubsub
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyinsteon";
|
|
version = "1.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-PMjvic+K/m7beavlZvGhJcizSNCzLPZYLm3P2V9EPLs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiofiles
|
|
aiohttp
|
|
pypubsub
|
|
pyserial
|
|
pyserial-asyncio
|
|
pyyaml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
async_generator
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_results"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyinsteon"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to support Insteon home automation projects";
|
|
longDescription = ''
|
|
This is a Python package to interface with an Insteon Modem. It has been
|
|
tested to work with most USB or RS-232 serial based devices such as the
|
|
2413U, 2412S, 2448A7 and Hub models 2242 and 2245.
|
|
'';
|
|
homepage = "https://github.com/pyinsteon/pyinsteon";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|