1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pyyaml, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "python-hosts"; 12 version = "1.1.2"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-XiU6aO6EhFVgj1g7TYMdbgg7IvjkU2DFoiwYikrB13A="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 nativeCheckInputs = [ 23 pyyaml 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "python_hosts" ]; 28 29 disabledTests = [ 30 # Tests require network access 31 "test_import_from_url_counters_for_part_success" 32 "test_import_from_url_with_force" 33 "test_import_from_url_without_force" 34 "test_import_from_url" 35 ]; 36 37 meta = with lib; { 38 description = "Library for managing a hosts file"; 39 longDescription = '' 40 python-hosts is a Python library for managing a hosts file. It enables you to add 41 and remove entries, or import them from a file or URL. 42 ''; 43 homepage = "https://github.com/jonhadfield/python-hosts"; 44 changelog = "https://github.com/jonhadfield/python-hosts/blob/${version}/CHANGELOG.md"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ psyanticy ]; 47 }; 48}