1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "torrent-parser";
11 version = "0.4.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "7sDream";
16 repo = "torrent_parser";
17 rev = "v${version}";
18 hash = "sha256-zM738r3o9dGZYoWLN7fM4E06m6YPcAODEkgDS6wU/Sc=";
19 };
20
21 nativeBuildInputs = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "torrent_parser" ];
26
27 meta = {
28 description = ".torrent file parser and creator for both Python 2 and 3";
29 mainProgram = "pytp";
30 homepage = "https://github.com/7sDream/torrent_parser";
31 changelog = "https://github.com/7sDream/torrent_parser/blob/${src.rev}/CHANGELOG.md";
32 license = lib.licenses.mit;
33 maintainers = [ ];
34 };
35}