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