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