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