1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "torrent-parser"; 10 version = "0.4.1"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "7sDream"; 15 repo = "torrent_parser"; 16 rev = "v${version}"; 17 hash = "sha256-zM738r3o9dGZYoWLN7fM4E06m6YPcAODEkgDS6wU/Sc="; 18 }; 19 20 nativeBuildInputs = [ 21 setuptools 22 ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ 29 "torrent_parser" 30 ]; 31 32 meta = { 33 description = "A .torrent file parser and creator for both Python 2 and 3"; 34 homepage = "https://github.com/7sDream/torrent_parser"; 35 changelog = "https://github.com/7sDream/torrent_parser/blob/${src.rev}/CHANGELOG.md"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ ]; 38 }; 39}