mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
48 lines
1021 B
Nix
48 lines
1021 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
six,
|
|
tldextract,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
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
|
|
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 ];
|
|
};
|
|
}
|