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.
43 lines
930 B
Nix
43 lines
930 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, asynctest
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dynalite-devices";
|
|
version = "0.47";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ziv1234";
|
|
repo = "python-dynalite-devices";
|
|
rev = "refs/tags/v${version}"; # https://github.com/ziv1234/python-dynalite-devices/issues/2
|
|
hash = "sha256-kJo4e5vhgWzijLUhQd9VBVk1URpg9SXhOA60dJYashM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/^addopts/d' setup.cfg
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
asynctest
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--asyncio-mode=auto"
|
|
];
|
|
|
|
pythonImportsCheck = [ "dynalite_devices_lib" ];
|
|
|
|
meta = with lib; {
|
|
description = "An unofficial Dynalite DyNET interface creating devices";
|
|
homepage = "https://github.com/ziv1234/python-dynalite-devices";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|