depot/third_party/nixpkgs/pkgs/development/python-modules/python-ipware/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

37 lines
877 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";
rev = "refs/tags/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 ];
};
}