about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/torrent-parser/default.nix
blob: 2e946229747f17f0d30f7160964f32e8c807caa0 (plain) (blame)
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
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "torrent-parser";
  version = "0.4.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner  = "7sDream";
    repo   = "torrent_parser";
    rev    = "v${version}";
    hash = "sha256-zM738r3o9dGZYoWLN7fM4E06m6YPcAODEkgDS6wU/Sc=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "torrent_parser"
  ];

  meta = {
    description = "A .torrent file parser and creator for both Python 2 and 3";
    homepage    = "https://github.com/7sDream/torrent_parser";
    changelog = "https://github.com/7sDream/torrent_parser/blob/${src.rev}/CHANGELOG.md";
    license     = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
  };
}