1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry
5, pytest-cov
6, pytest-flakes
7, pytest-mock
8, pytest-socket
9, pytestCheckHook
10, six
11}:
12
13buildPythonPackage rec {
14 pname = "url-normalize";
15 version = "1.4.3";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "niksite";
20 repo = pname;
21 rev = version;
22 sha256 = "09nac5nh94x0n4bfazjfxk96b20mfsx6r1fnvqv85gkzs0rwqkaq";
23 };
24
25 nativeBuildInputs = [ poetry ];
26
27 propagatedBuildInputs = [ six ];
28
29 checkInputs = [
30 pytest-cov
31 pytest-flakes
32 pytest-mock
33 pytest-socket
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "url_normalize" ];
38
39 meta = with lib; {
40 description = "URL normalization for Python";
41 homepage = "https://github.com/niksite/url-normalize";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}