11 buildPythonPackage rec {
12 pname = "fastbencode";
16 disabled = pythonOlder "3.8";
19 inherit pname version;
20 hash = "sha256-X+DLfRc2iRr2HSreQM6UiUHUbpCLFvU4P1XxJ4SNoZc=";
23 build-system = [ setuptools ];
25 nativeBuildInputs = [ cython ];
27 pythonImportsCheck = [ "fastbencode" ];
30 ${python.interpreter} -m unittest fastbencode.tests.test_suite
34 description = "Fast implementation of bencode";
35 homepage = "https://github.com/breezy-team/fastbencode";
36 changelog = "https://github.com/breezy-team/fastbencode/releases/tag/v${version}";
37 license = licenses.gpl2Plus;