summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/bencode-py/default.nix
blob: f4c8ddf1c2e2577fb6aaff931ad13e43779a837f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pbr,
  pytestCheckHook,
}:
buildPythonPackage rec {
  pname = "beconde-py";
  version = "4.0.0";
  format = "setuptools";

  src = fetchPypi {
    inherit version;
    pname = "bencode.py";
    hash = "sha256-KiTM2hclpRplCJPQtjJgE4NZ6qKZu256CZYTUKKm4Fw=";
  };

  pythonImportsCheck = [ "bencodepy" ];

  nativeBuildInputs = [ pbr ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Simple bencode parser (for Python 2, Python 3 and PyPy)";
    homepage = "https://github.com/fuzeman/bencode.py";
    license = lib.licenses.bitTorrent11;
    maintainers = with lib.maintainers; [ vamega ];
  };
}