at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flatbencode, 6 pytest-cov-stub, 7 pytest-httpserver, 8 pytest-mock, 9 pytest-xdist, 10 pytestCheckHook, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "torf"; 16 version = "4.3.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "rndusr"; 21 repo = "torf"; 22 tag = "v${version}"; 23 hash = "sha256-vJapB4Tbn3tLLUIH9LemU9kTqG7TsByiotkWM52lsno="; 24 }; 25 26 build-system = [ 27 setuptools 28 ]; 29 30 dependencies = [ 31 flatbencode 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-cov-stub 36 pytest-httpserver 37 pytest-mock 38 pytest-xdist 39 pytestCheckHook 40 ]; 41 42 disabledTests = [ 43 # Those tests fail DNS resolution in the sandbox 44 "test_getting_info__xs_fails__as_fails" 45 "test_getting_info__xs_returns_invalid_bytes" 46 "test_getting_info__as_returns_invalid_bytes" 47 ]; 48 49 pythonImportsCheck = [ "torf" ]; 50 51 meta = with lib; { 52 description = "Create, parse and edit torrent files and magnet links"; 53 homepage = "https://github.com/rndusr/torf"; 54 license = licenses.gpl3Plus; 55 maintainers = with maintainers; [ ambroisie ]; 56 }; 57}