Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, pytestCheckHook 6, pythonOlder 7, setuptools-scm 8, six 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-remotedata"; 13 version = "0.4.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-viHFWONNfBGw9q61CVbAlSC//NArf86cb46FMaQBocg="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 ]; 26 27 buildInputs = [ 28 pytest 29 ]; 30 31 propagatedBuildInputs = [ 32 six 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 disabledTestPaths = [ 40 # These tests require a network connection 41 "tests/test_strict_check.py" 42 ]; 43 44 pythonImportsCheck = [ 45 "pytest_remotedata" 46 ]; 47 48 meta = with lib; { 49 description = "Pytest plugin for controlling remote data access"; 50 homepage = "https://github.com/astropy/pytest-remotedata"; 51 changelog = "https://github.com/astropy/pytest-remotedata/blob/v${version}/CHANGES.rst"; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ costrouc ]; 54 }; 55}