depot/third_party/nixpkgs/pkgs/development/python-modules/torrent-parser/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
837 B
Nix

{
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";
mainProgram = "pytp";
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; [ ];
};
}