2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-02-20 05:27:41 +00:00
|
|
|
, aiohttp
|
|
|
|
, appdirs
|
2020-10-11 12:50:04 +00:00
|
|
|
, buildPythonPackage
|
2022-02-20 05:27:41 +00:00
|
|
|
, docutils
|
2020-10-11 12:50:04 +00:00
|
|
|
, fetchFromGitHub
|
2022-02-20 05:27:41 +00:00
|
|
|
, flaky
|
|
|
|
, installShellFiles
|
|
|
|
, packaging
|
|
|
|
, pycurl
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-httpbin
|
2020-10-11 12:50:04 +00:00
|
|
|
, pytestCheckHook
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2020-10-11 12:50:04 +00:00
|
|
|
, setuptools
|
|
|
|
, structlog
|
2022-02-20 05:27:41 +00:00
|
|
|
, tomli
|
2020-10-11 12:50:04 +00:00
|
|
|
, tornado
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nvchecker";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "2.8";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lilydjwg";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-ikpjR1fEZBsSOE20jxTyarb9Pqn3Fz+TYOzXp0g4G9c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
docutils
|
|
|
|
installShellFiles
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
appdirs
|
|
|
|
packaging
|
|
|
|
pycurl
|
|
|
|
setuptools
|
|
|
|
structlog
|
|
|
|
tomli
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
flaky
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpbin
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
postBuild = ''
|
|
|
|
patchShebangs docs/myrst2man.py
|
|
|
|
make -C docs man
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/_build/man/nvchecker.1
|
|
|
|
'';
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nvchecker"
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-m 'not needs_net'"
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/lilydjwg/nvchecker";
|
|
|
|
description = "New version checker for software";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|