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