Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-ipware / default.nix
blob5564eabdb4f622507246d85409dcadfc9ebfdcb0
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , unittestCheckHook
6 , setuptools
7 }:
8 buildPythonPackage rec {
9   pname = "python-ipware";
10   version = "2.0.0";
11   pyproject = true;
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "un33k";
17     repo = "python-ipware";
18     rev = "v${version}";
19     hash = "sha256-j43uAcb1dyKe/SHQLLR+QJS6hKGB5qxjb9NiJaUPj8Y=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   pythonImportsCheck = [
27     "python_ipware"
28   ];
30   nativeCheckInputs = [
31     unittestCheckHook
32   ];
34   meta = with lib; {
35     description = "A python package for server applications to retrieve client's IP address";
36     homepage = "https://github.com/un33k/python-ipware";
37     changelog = "https://github.com/un33k/python-ipware/blob/v${version}/CHANGELOG.md";
38     license = licenses.mit;
39     maintainers = with maintainers; [ e1mo ];
40   };