depot/third_party/nixpkgs/pkgs/development/python-modules/nvchecker/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

81 lines
1.3 KiB
Nix

{ lib
, aiohttp
, platformdirs
, buildPythonPackage
, docutils
, fetchFromGitHub
, flaky
, installShellFiles
, packaging
, pycurl
, pytest-asyncio
, pytest-httpbin
, pytestCheckHook
, pythonOlder
, setuptools
, structlog
, tomli
, tornado
}:
buildPythonPackage rec {
pname = "nvchecker";
version = "2.11";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "lilydjwg";
repo = pname;
rev = "v${version}";
hash = "sha256-b/EGn26gTpnYuy2h6shnJI1dRwhl41eKJHzDJoFG1YI=";
};
nativeBuildInputs = [
docutils
installShellFiles
];
propagatedBuildInputs = [
aiohttp
platformdirs
packaging
pycurl
setuptools
structlog
tomli
tornado
];
nativeCheckInputs = [
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 ];
};
}