4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib, stdenv
|
|
, async-timeout
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, coloredlogs
|
|
, coveralls
|
|
, fetchFromGitHub
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytest-timeout
|
|
, pytestcov
|
|
, pytestCheckHook
|
|
, voluptuous
|
|
, zigpy }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zigpy-znp";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zha-ng";
|
|
repo = "zigpy-znp";
|
|
rev = "v${version}";
|
|
sha256 = "18dav2n5fqdigf8dl7gcqa9z8l6p2ig6l5q78gqg2wj7wjpncwyj";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
coloredlogs
|
|
pyserial
|
|
pyserial-asyncio
|
|
voluptuous
|
|
zigpy
|
|
];
|
|
|
|
checkInputs = [
|
|
asynctest
|
|
coveralls
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytest-timeout
|
|
pytestcov
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# zigpy-znp was too slow to sync up with the zigpy 0.29 release and has API breakage, remove >0.3.0
|
|
"test_force_remove"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A library for zigpy which communicates with TI ZNP radios";
|
|
homepage = "https://github.com/zha-ng/zigpy-znp";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|