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
|
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "docstring-to-markdown";
|
||||
version = "0.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-lsp";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0rflkbms94wkcypjcnz30bc4w4iww91h7sqq3j2b6ypzl4g48csa";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# So pytest-flake8 and pytest-cov won't be needed
|
||||
./remove-coverage-tests.patch
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"docstring_to_markdown"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/python-lsp/docstring-to-markdown";
|
||||
description = "On the fly conversion of Python docstrings to markdown";
|
||||
license = licenses.lgpl2Plus;
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
diff --git i/setup.cfg w/setup.cfg
|
||||
index e880e74..e77133e 100644
|
||||
--- i/setup.cfg
|
||||
+++ w/setup.cfg
|
||||
@@ -34,11 +34,7 @@ docstring-to-markdown = py.typed
|
||||
[tool:pytest]
|
||||
addopts =
|
||||
--pyargs tests
|
||||
- --cov docstring_to_markdown
|
||||
- --cov-fail-under=98
|
||||
- --cov-report term-missing:skip-covered
|
||||
-p no:warnings
|
||||
- --flake8
|
||||
-vv
|
||||
|
||||
[flake8]
|
||||
Loading…
Add table
Add a link
Reference in a new issue