1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "pysmartdl"; 11 version = "1.3.4"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "iTaybb"; 16 repo = "pySmartDL"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 disabledTests = [ 26 # touch the network 27 "test_basic_auth" 28 "test_custom_headers" 29 "test_download" 30 "test_hash" 31 "test_mirrors" 32 "test_pause_unpause" 33 "test_speed_limiting" 34 "test_stop" 35 "test_timeout" 36 "test_unicode" 37 ]; 38 39 pythonImportsCheck = [ "pySmartDL" ]; 40 41 meta = with lib; { 42 homepage = "https://github.com/iTaybb/pySmartDL"; 43 description = "A Smart Download Manager for Python"; 44 changelog = "https://github.com/iTaybb/pySmartDL/blob/${src.rev}/ChangeLog.txt"; 45 license = licenses.unlicense; 46 maintainers = with maintainers; [ ]; 47 }; 48}