1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hypothesis, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "flatbencode"; 12 version = "0.2.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "acatton"; 17 repo = "flatbencode"; 18 tag = "v${version}"; 19 hash = "sha256-1/4w41E8IKygJTBcQOexiDytV6BvVBwIjajKz2uCfu8="; 20 }; 21 22 build-system = [ 23 setuptools 24 ]; 25 26 nativeCheckInputs = [ 27 hypothesis 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "flatbencode" ]; 32 33 meta = { 34 description = "Fast, safe and non-recursive implementation of Bittorrent bencoding"; 35 homepage = "https://github.com/acatton/flatbencode"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ ambroisie ]; 38 }; 39}