at master 853 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "netaddr"; 12 version = "1.3.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-XDw9mJW1Ubdjd5un23oDSH3B+OOzha+BmvNBrp725Io="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "netaddr" ]; 27 28 meta = with lib; { 29 description = "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}