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
48
pkgs/development/python-modules/librouteros/default.nix
Normal file
48
pkgs/development/python-modules/librouteros/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, pytestCheckHook
|
||||
, pytest-xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "librouteros";
|
||||
version = "3.2.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "luqasz";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-VwpZ1RY6Sul7xvWY7ZoOxZ7KgbRmKRwcVdF9e2b3f6Q=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Disable tests which require QEMU to run
|
||||
"test_login"
|
||||
"test_long_word"
|
||||
"test_query"
|
||||
"test_add_then_remove"
|
||||
"test_add_then_update"
|
||||
"test_generator_ditch"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"librouteros"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation of the MikroTik RouterOS API";
|
||||
homepage = "https://librouteros.readthedocs.io/";
|
||||
license = with licenses; [ gpl2Only ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue