summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/url-normalize/default.nix
blob: ea7825d9ffd2b7cba67bf96053501800e818dd6f (plain)
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
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry
, pytest-cov
, pytest-flakes
, pytest-mock
, pytest-socket
, pytestCheckHook
, six
}:

buildPythonPackage rec {
  pname = "url-normalize";
  version = "1.4.3";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "niksite";
    repo = pname;
    rev = version;
    sha256 = "09nac5nh94x0n4bfazjfxk96b20mfsx6r1fnvqv85gkzs0rwqkaq";
  };

  nativeBuildInputs = [ poetry ];

  propagatedBuildInputs = [ six ];

  checkInputs = [
    pytest-cov
    pytest-flakes
    pytest-mock
    pytest-socket
    pytestCheckHook
  ];

  pythonImportsCheck = [ "url_normalize" ];

  meta = with lib; {
    description = "URL normalization for Python";
    homepage = "https://github.com/niksite/url-normalize";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}