2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 20:17:00 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonAtLeast
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
if (pythonAtLeast "3.3") then null else buildPythonPackage rec {
|
|
|
|
pname = "ipaddress";
|
2019-10-24 06:47:35 +00:00
|
|
|
version = "1.0.23";
|
2018-10-15 20:17:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:35 +00:00
|
|
|
sha256 = "b7f8e0369580bb4a24d5ba1d7cc29660a4a6987763faf1d8a8046830e020e7e2";
|
2018-10-15 20:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test_ipaddress.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 20:17:00 +00:00
|
|
|
description = "Port of the 3.3+ ipaddress module to 2.6, 2.7, and 3.2";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/phihag/ipaddress";
|
2018-10-15 20:17:00 +00:00
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|