evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / surt / default.nix
blob74e5723eb9062960f90248fe62b0df7106fd657b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   six,
8   tldextract,
9 }:
11 buildPythonPackage rec {
12   pname = "surt";
13   version = "0.3.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "internetarchive";
20     repo = "surt";
21     # Has no git tag, https://github.com/internetarchive/surt/issues/26
22     rev = "6934c321b3e2f66af9c001d882475949f00570c5";
23     hash = "sha256-pSMNpFfq2V0ANWNFPcb1DwPHccbfddo9P4xZ+ghwbz4=";
24   };
26   propagatedBuildInputs = [
27     six
28     tldextract
29   ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "surt" ];
35   disabledTests = [
36     # Tests want to download Public Suffix List
37     "test_getPublicPrefix"
38     "test_getPublicSuffix"
39   ];
41   meta = with lib; {
42     description = "Sort-friendly URI Reordering Transform (SURT) python module";
43     homepage = "https://github.com/internetarchive/surt";
44     license = licenses.agpl3Only;
45     maintainers = with maintainers; [ Luflosi ];
46   };