uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
60
pkgs/development/python-modules/aioswitcher/default.nix
Normal file
60
pkgs/development/python-modules/aioswitcher/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, assertpy
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytest-mockservers
|
||||
, pytest-resource-path
|
||||
, pytest-sugar
|
||||
, pytestCheckHook
|
||||
, time-machine
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioswitcher";
|
||||
version = "2.0.9";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TomerFi";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-vsMQG664ySMQfdl4tGJKMY0MZXVl39QaFxu7kMtZWCM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export TZ=Asia/Jerusalem
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
assertpy
|
||||
pytest-asyncio
|
||||
pytest-mockservers
|
||||
pytest-resource-path
|
||||
pytest-sugar
|
||||
pytestCheckHook
|
||||
time-machine
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# AssertionError: Expected <14:00> to be equal to <17:00>, but was not.
|
||||
"test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data"
|
||||
"test_schedule_parser_with_a_daily_recurring_enabled_schedule_data"
|
||||
"test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data"
|
||||
"test_schedule_parser_with_a_non_recurring_enabled_schedule_data"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "aioswitcher" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to interact with Switcher water heater";
|
||||
homepage = "https://github.com/TomerFi/aioswitcher";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue