evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / iptools / default.nix
blobc3d14b161c02d4e42c007bcb8caa62985eb59758
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   setuptools,
7 }:
9 buildPythonPackage rec {
10   version = "0.7.0";
11   pname = "iptools";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "bd808";
16     repo = "python-iptools";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-340Wc4QGwUqEEANM5EQzFaXxIWVf2fDr4qfCuxNEVBQ=";
19   };
21   build-system = [ setuptools ];
23   pythonImportsCheck = [ "iptools" ];
25   nativeCheckInputs = [ pytestCheckHook ];
27   pytestFlagsArray = [ "tests/iptools/iptools_test.py" ];
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   };