1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 python, 6 pbr, 7 pytestCheckHook, 8}: 9buildPythonPackage rec { 10 pname = "beconde-py"; 11 version = "4.0.0"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit version; 16 pname = "bencode.py"; 17 hash = "sha256-KiTM2hclpRplCJPQtjJgE4NZ6qKZu256CZYTUKKm4Fw="; 18 }; 19 20 pythonImportsCheck = [ 21 "bencodepy" 22 ]; 23 24 nativeBuildInputs = [ 25 pbr 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 meta = with lib; { 33 description = "Simple bencode parser (for Python 2, Python 3 and PyPy)"; 34 homepage = "https://github.com/fuzeman/bencode.py"; 35 license = licenses.bitTorrent11; 36 maintainers = with maintainers; [vamega]; 37 }; 38}