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
81
pkgs/development/python-modules/nvchecker/default.nix
Normal file
81
pkgs/development/python-modules/nvchecker/default.nix
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, appdirs
|
||||
, buildPythonPackage
|
||||
, docutils
|
||||
, fetchFromGitHub
|
||||
, flaky
|
||||
, installShellFiles
|
||||
, packaging
|
||||
, pycurl
|
||||
, pytest-asyncio
|
||||
, pytest-httpbin
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, structlog
|
||||
, tomli
|
||||
, tornado
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nvchecker";
|
||||
version = "2.8";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lilydjwg";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ikpjR1fEZBsSOE20jxTyarb9Pqn3Fz+TYOzXp0g4G9c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
docutils
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
appdirs
|
||||
packaging
|
||||
pycurl
|
||||
setuptools
|
||||
structlog
|
||||
tomli
|
||||
tornado
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
flaky
|
||||
pytest-asyncio
|
||||
pytest-httpbin
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
patchShebangs docs/myrst2man.py
|
||||
make -C docs man
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installManPage docs/_build/man/nvchecker.1
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"nvchecker"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-m 'not needs_net'"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/lilydjwg/nvchecker";
|
||||
description = "New version checker for software";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ marsam ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue