mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #160818 from r-ryantm/auto-update/nvchecker
nvchecker: 2.6.1 -> 2.7
This commit is contained in:
commit
fa3997e59e
@ -1,40 +1,59 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchFromGitHub
|
|
||||||
, pythonOlder
|
|
||||||
, pytestCheckHook
|
|
||||||
, setuptools
|
|
||||||
, packaging
|
|
||||||
, tomli
|
|
||||||
, structlog
|
|
||||||
, appdirs
|
|
||||||
, pytest-asyncio
|
|
||||||
, flaky
|
|
||||||
, tornado
|
|
||||||
, pycurl
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, pytest-httpbin
|
, appdirs
|
||||||
|
, buildPythonPackage
|
||||||
, docutils
|
, docutils
|
||||||
|
, fetchFromGitHub
|
||||||
|
, flaky
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, packaging
|
||||||
|
, pycurl
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-httpbin
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
|
, structlog
|
||||||
|
, tomli
|
||||||
|
, tornado
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nvchecker";
|
pname = "nvchecker";
|
||||||
version = "2.6.1";
|
version = "2.7";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
# Tests not included in PyPI tarball
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lilydjwg";
|
owner = "lilydjwg";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-Lfo/VzsklEbv/kiKV5GbzvycwekqykRLrZBhehC1MjY=";
|
hash = "sha256-OPUqkHLG8PUlD5NP7q/BpKUvmAA8Jk1NvsPPVbImv0A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles docutils ];
|
nativeBuildInputs = [
|
||||||
propagatedBuildInputs = [ setuptools packaging tomli structlog appdirs tornado pycurl aiohttp ];
|
docutils
|
||||||
checkInputs = [ pytestCheckHook pytest-asyncio flaky pytest-httpbin ];
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
appdirs
|
||||||
|
packaging
|
||||||
|
pycurl
|
||||||
|
setuptools
|
||||||
|
structlog
|
||||||
|
tomli
|
||||||
|
tornado
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
flaky
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-httpbin
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
patchShebangs docs/myrst2man.py
|
patchShebangs docs/myrst2man.py
|
||||||
@ -45,7 +64,13 @@ buildPythonPackage rec {
|
|||||||
installManPage docs/_build/man/nvchecker.1
|
installManPage docs/_build/man/nvchecker.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [ "-m 'not needs_net'" ];
|
pythonImportsCheck = [
|
||||||
|
"nvchecker"
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"-m 'not needs_net'"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/lilydjwg/nvchecker";
|
homepage = "https://github.com/lilydjwg/nvchecker";
|
||||||
|
Loading…
Reference in New Issue
Block a user