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