Files
nixpkgs/pkgs/development/python-modules/surt/default.nix
Luflosi 1d6f3f1fc2 python3Packages.surt: disable auto update
There is no Git tag for the latest version, so the update script gets confused. To avoid the update script downgrading the version, disable automatic updates.
2025-09-13 20:21:34 +02:00

49 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
six,
tldextract,
}:
buildPythonPackage {
pname = "surt";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "internetarchive";
repo = "surt";
# Has no git tag, https://github.com/internetarchive/surt/issues/26
# nixpkgs-update: no auto update
rev = "6934c321b3e2f66af9c001d882475949f00570c5";
hash = "sha256-pSMNpFfq2V0ANWNFPcb1DwPHccbfddo9P4xZ+ghwbz4=";
};
propagatedBuildInputs = [
six
tldextract
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "surt" ];
disabledTests = [
# Tests want to download Public Suffix List
"test_getPublicPrefix"
"test_getPublicSuffix"
];
meta = with lib; {
description = "Sort-friendly URI Reordering Transform (SURT) python module";
homepage = "https://github.com/internetarchive/surt";
license = licenses.agpl3Only;
maintainers = with maintainers; [ Luflosi ];
};
}