2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2024-10-11 05:15:48 +00:00
|
|
|
unittestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2024-10-11 05:15:48 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-ipware";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "3.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "un33k";
|
|
|
|
repo = "python-ipware";
|
2024-10-11 05:15:48 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-S8/HbRztYGzrpLQRTHcvO7Zv3mNn/0+y5PNBYLpd++E=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
pythonImportsCheck = [ "python_ipware" ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python package for server applications to retrieve client's IP address";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/un33k/python-ipware";
|
|
|
|
changelog = "https://github.com/un33k/python-ipware/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ e1mo ];
|
|
|
|
};
|
|
|
|
}
|