Files
2026-07-16 21:33:12 +00:00

55 lines
1.1 KiB
Nix
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
fastprogress,
fastcore,
}:
buildPythonPackage (finalAttrs: {
pname = "fastdownload";
version = "0.0.7";
pyproject = true;
__structuredAttrs = true;
# No tag for 0.0.7 on GitHub
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-IFB+246JQGofvXd15uKj2BpN1jPdUGsOnPDhYT6DHWo=";
};
# pkg_resources used to come with setuptools but was removed
postPatch = ''
substituteInPlace setup.py \
--replace-fail \
"from pkg_resources import parse_version" \
"from packaging.version import parse as parse_version"
'';
build-system = [
setuptools
];
dependencies = [
fastprogress
fastcore
];
pythonImportsCheck = [ "fastdownload" ];
# no tests
doCheck = false;
meta = {
description = "Easily download, verify, and extract archives";
homepage = "https://github.com/fastai/fastdownload";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ rxiao ];
};
})