depot/third_party/nixpkgs/pkgs/development/python-modules/pysmartdl/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

48 lines
1,017 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pysmartdl";
version = "1.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "iTaybb";
repo = "pySmartDL";
rev = "refs/tags/v${version}";
hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# touch the network
"test_basic_auth"
"test_custom_headers"
"test_download"
"test_hash"
"test_mirrors"
"test_pause_unpause"
"test_speed_limiting"
"test_stop"
"test_timeout"
"test_unicode"
];
pythonImportsCheck = [ "pySmartDL" ];
meta = with lib; {
homepage = "https://github.com/iTaybb/pySmartDL";
description = "Smart Download Manager for Python";
changelog = "https://github.com/iTaybb/pySmartDL/blob/${src.rev}/ChangeLog.txt";
license = licenses.unlicense;
maintainers = [ ];
};
}