summary refs log tree commit diff
path: root/pkgs/development/python-modules/surt/default.nix
blob: 21024c0ed02c16fd75e468bbb411450dd16d3887 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, tldextract
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "surt";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "internetarchive";
    repo = "surt";
    rev = "6934c321b3e2f66af9c001d882475949f00570c5"; # Has no git tag
    sha256 = "sha256-pSMNpFfq2V0ANWNFPcb1DwPHccbfddo9P4xZ+ghwbz4=";
  };

  propagatedBuildInputs = [
    six
    tldextract
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "surt" ];

  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 ];
  };
}