summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/bencoder/default.nix
blob: 51ab63bab42e435555cc082c8afe772b22e763c8 (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
32
{
  lib,
  fetchPypi,
  buildPythonPackage,
  setuptools,
}:
buildPythonPackage (finalAttrs: {
  pname = "bencoder";
  version = "0.2.0";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-rENvM/3X51stkFdJHSq+77VjHvsTyBNAPbCtsRq1L8I=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "bencoder" ];

  # There are no tests.
  doCheck = false;

  meta = {
    description = "Simple bencode decoder/encoder library in pure Python";
    homepage = "https://github.com/utdemir/bencoder";
    license = lib.licenses.gpl2;
    maintainers = with lib.maintainers; [ somasis ];
  };
})