567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dynalite-devices";
|
|
version = "0.1.48";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ziv1234";
|
|
repo = "python-dynalite-devices";
|
|
tag = "v${version}";
|
|
hash = "sha256-i88aIsRNsToSceQdwfspJg+Y5MO5zC4O6EkyhrYR27g=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/^addopts/d' setup.cfg
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlags = [ "--asyncio-mode=auto" ];
|
|
|
|
pythonImportsCheck = [ "dynalite_devices_lib" ];
|
|
|
|
# it would use the erroneous tag v0.47
|
|
passthru.skipBulkUpdate = true;
|
|
|
|
meta = {
|
|
description = "Unofficial Dynalite DyNET interface creating devices";
|
|
homepage = "https://github.com/ziv1234/python-dynalite-devices";
|
|
changelog = "https://github.com/ziv1234/python-dynalite-devices/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|