1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 unittestCheckHook,
7 setuptools,
8}:
9buildPythonPackage rec {
10 pname = "python-ipware";
11 version = "2.0.0";
12 pyproject = true;
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "un33k";
18 repo = "python-ipware";
19 rev = "v${version}";
20 hash = "sha256-j43uAcb1dyKe/SHQLLR+QJS6hKGB5qxjb9NiJaUPj8Y=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 pythonImportsCheck = [ "python_ipware" ];
26
27 nativeCheckInputs = [ unittestCheckHook ];
28
29 meta = with lib; {
30 description = "A python package for server applications to retrieve client's IP address";
31 homepage = "https://github.com/un33k/python-ipware";
32 changelog = "https://github.com/un33k/python-ipware/blob/v${version}/CHANGELOG.md";
33 license = licenses.mit;
34 maintainers = with maintainers; [ e1mo ];
35 };
36}