2019-11-05 03:00:00 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytest, setuptools, structlog, pytest-asyncio, flaky, tornado, pycurl, pytest-httpbin }:
|
2018-10-14 19:47:14 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nvchecker";
|
2019-11-05 03:00:00 +01:00
|
|
|
version = "1.5";
|
2018-10-14 19:47:14 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-05 03:00:00 +01:00
|
|
|
sha256 = "0973f7c3ea5ad65fb19837e8915882a9f2c2f21f5c2589005478697391fea2fd";
|
2018-10-14 19:47:14 +02:00
|
|
|
};
|
|
|
|
|
2018-11-25 21:44:58 +01:00
|
|
|
propagatedBuildInputs = [ setuptools structlog tornado pycurl ];
|
2019-11-05 03:00:00 +01:00
|
|
|
checkInputs = [ pytest pytest-asyncio flaky pytest-httpbin ];
|
2018-10-14 19:47:14 +02:00
|
|
|
|
2019-11-05 03:00:00 +01:00
|
|
|
# disable `test_ubuntupkg` because it requires network
|
2018-10-14 19:47:14 +02:00
|
|
|
checkPhase = ''
|
2019-11-05 03:00:00 +01:00
|
|
|
py.test -m "not needs_net" --ignore=tests/test_ubuntupkg.py
|
2018-10-14 19:47:14 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/lilydjwg/nvchecker;
|
|
|
|
description = "New version checker for software";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|