nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pytest, setuptools, structlog, pytest-asyncio, flaky, tornado, pycurl, pytest-httpbin }:
2
3buildPythonPackage rec {
4 pname = "nvchecker";
5 version = "1.5";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0973f7c3ea5ad65fb19837e8915882a9f2c2f21f5c2589005478697391fea2fd";
10 };
11
12 propagatedBuildInputs = [ setuptools structlog tornado pycurl ];
13 checkInputs = [ pytest pytest-asyncio flaky pytest-httpbin ];
14
15 # disable `test_ubuntupkg` because it requires network
16 checkPhase = ''
17 py.test -m "not needs_net" --ignore=tests/test_ubuntupkg.py
18 '';
19
20 disabled = pythonOlder "3.5";
21
22 meta = with stdenv.lib; {
23 homepage = https://github.com/lilydjwg/nvchecker;
24 description = "New version checker for software";
25 license = licenses.mit;
26 maintainers = with maintainers; [ marsam ];
27 };
28}