38 lines
877 B
Nix
38 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 ];
|
||
|
};
|
||
|
}
|