python3Packages.torf: init at 4.3.0

This commit is contained in:
Bruno BELANYI
2025-06-09 16:42:32 +00:00
parent a67041ba64
commit 45e698bb7e
2 changed files with 59 additions and 0 deletions
@@ -0,0 +1,57 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
flatbencode,
pytest-cov-stub,
pytest-httpserver,
pytest-mock,
pytest-xdist,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "torf";
version = "4.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rndusr";
repo = "torf";
tag = "v${version}";
hash = "sha256-vJapB4Tbn3tLLUIH9LemU9kTqG7TsByiotkWM52lsno=";
};
build-system = [
setuptools
];
dependencies = [
flatbencode
];
nativeCheckInputs = [
pytest-cov-stub
pytest-httpserver
pytest-mock
pytest-xdist
pytestCheckHook
];
disabledTests = [
# Those tests fail DNS resolution in the sandbox
"test_getting_info__xs_fails__as_fails"
"test_getting_info__xs_returns_invalid_bytes"
"test_getting_info__as_returns_invalid_bytes"
];
pythonImportsCheck = [ "torf" ];
meta = with lib; {
description = "create, parse and edit torrent files and magnet links";
homepage = "https://github.com/rndusr/torf";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ambroisie ];
};
}
+2
View File
@@ -17581,6 +17581,8 @@ self: super: with self; {
torchvision-bin = callPackage ../development/python-modules/torchvision/bin.nix { };
torf = callPackage ../development/python-modules/torf { };
tornado = callPackage ../development/python-modules/tornado { };
torpy = callPackage ../development/python-modules/torpy { };