1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 version = "0.7.0";
11 pname = "iptools";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "bd808";
16 repo = "python-iptools";
17 tag = "v${version}";
18 hash = "sha256-340Wc4QGwUqEEANM5EQzFaXxIWVf2fDr4qfCuxNEVBQ=";
19 };
20
21 build-system = [ setuptools ];
22
23 pythonImportsCheck = [ "iptools" ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 enabledTestPaths = [ "tests/iptools/iptools_test.py" ];
28
29 meta = with lib; {
30 description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting";
31 homepage = "https://github.com/bd808/python-iptools";
32 license = licenses.bsd0;
33 };
34}