2018-10-17 05:52:48 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-12 06:24:03 +01:00
|
|
|
, pythonOlder
|
2019-01-05 10:54:27 +00:00
|
|
|
, glibcLocales
|
2020-09-12 06:24:03 +01:00
|
|
|
, importlib-resources
|
|
|
|
, pytestCheckHook
|
2018-10-17 05:52:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "netaddr";
|
2020-09-12 06:24:03 +01:00
|
|
|
version = "0.8.0";
|
2018-10-17 05:52:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-12 06:24:03 +01:00
|
|
|
sha256 = "0hx2npi0wnhwlcybilgwlddw6qffx1mb7a3sj4p9s7bvl33mgk6n";
|
2018-10-17 05:52:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2020-09-12 06:24:03 +01:00
|
|
|
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.7") [ importlib-resources ];
|
2018-10-17 05:52:48 +01:00
|
|
|
|
2020-09-12 06:24:03 +01:00
|
|
|
checkInputs = [ glibcLocales pytestCheckHook ];
|
2018-10-17 05:52:48 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-09-12 06:24:03 +01:00
|
|
|
homepage = "https://netaddr.readthedocs.io/en/latest/";
|
|
|
|
downloadPage = "https://github.com/netaddr/netaddr/releases";
|
|
|
|
changelog = "https://netaddr.readthedocs.io/en/latest/changes.html";
|
2018-10-17 05:52:48 +01:00
|
|
|
description = "A network address manipulation library for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|