1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "netaddr";
12 version = "1.2.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-brj+3wQSxtKU0GiFwRDelFz00i0rUQ0EBPTgaVCFeYc=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "netaddr" ];
27
28 meta = with lib; {
29 description = "A network address manipulation library for Python";
30 mainProgram = "netaddr";
31 homepage = "https://netaddr.readthedocs.io/";
32 downloadPage = "https://github.com/netaddr/netaddr/releases";
33 changelog = "https://github.com/netaddr/netaddr/blob/${version}/CHANGELOG";
34 license = licenses.mit;
35 maintainers = with maintainers; [ fab ];
36 };
37}