lol

python3Packages.pytest-remotedata: add pythonImportsCheck

authored by

Fabian Affolter and committed by
Martin Weinelt
680898f0 8bcd96e7

+25 -9
+25 -9
pkgs/development/python-modules/pytest-remotedata/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , pytest 5 + , pytestCheckHook 6 + , pythonOlder 7 + , setuptools-scm 4 8 , six 5 - , pytest 6 9 }: 7 10 8 11 buildPythonPackage rec { 9 12 pname = "pytest-remotedata"; 10 13 version = "0.3.3"; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.6"; 11 17 12 18 src = fetchPypi { 13 19 inherit pname version; 14 20 sha256 = "66920bf1c62928b079d0e611379111a0d49f10a9509ced54c8269514ccce6ee3"; 15 21 }; 16 22 17 - buildInputs = [ pytest ]; 23 + nativeBuildInputs = [ 24 + setuptools-scm 25 + ]; 26 + 27 + buildInputs = [ 28 + pytest 29 + ]; 18 30 19 31 propagatedBuildInputs = [ 20 32 six 21 33 ]; 22 34 23 35 checkInputs = [ 24 - pytest 36 + pytestCheckHook 25 37 ]; 26 38 27 - checkPhase = '' 28 - # these tests require a network connection 29 - pytest --ignore tests/test_strict_check.py 30 - ''; 39 + disabledTestPaths = [ 40 + # These tests require a network connection 41 + "tests/test_strict_check.py" 42 + ]; 43 + 44 + pythonImportsCheck = [ 45 + "pytest_remotedata" 46 + ]; 31 47 32 48 meta = with lib; { 33 49 description = "Pytest plugin for controlling remote data access"; 34 - homepage = "https://astropy.org"; 50 + homepage = "https://github.com/astropy/pytest-remotedata"; 35 51 license = licenses.bsd3; 36 - maintainers = [ maintainers.costrouc ]; 52 + maintainers = with maintainers; [ costrouc ]; 37 53 }; 38 54 }