nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 817 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 unittestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "python-ipware"; 11 version = "3.0.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "un33k"; 16 repo = "python-ipware"; 17 tag = "v${version}"; 18 hash = "sha256-S8/HbRztYGzrpLQRTHcvO7Zv3mNn/0+y5PNBYLpd++E="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ unittestCheckHook ]; 24 25 pythonImportsCheck = [ "python_ipware" ]; 26 27 meta = { 28 description = "Python package for server applications to retrieve client's IP address"; 29 homepage = "https://github.com/un33k/python-ipware"; 30 changelog = "https://github.com/un33k/python-ipware/blob/v${version}/CHANGELOG.md"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ e1mo ]; 33 }; 34}