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 = [ "bencodepy" ];
21
22 nativeBuildInputs = [ pbr ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 meta = with lib; {
27 description = "Simple bencode parser (for Python 2, Python 3 and PyPy)";
28 homepage = "https://github.com/fuzeman/bencode.py";
29 license = licenses.bitTorrent11;
30 maintainers = with maintainers; [ vamega ];
31 };
32}