nixpkgs/pkgs/development/python-modules/python-ipware/default.nix
2025-01-04 00:19:17 +01:00

37 lines
867 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "python-ipware";
version = "3.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "un33k";
repo = "python-ipware";
tag = "v${version}";
hash = "sha256-S8/HbRztYGzrpLQRTHcvO7Zv3mNn/0+y5PNBYLpd++E=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "python_ipware" ];
meta = with lib; {
description = "Python package for server applications to retrieve client's IP address";
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 ];
};
}