My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/netaddr/default.nix

32 lines
792 B

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, glibcLocales
, importlib-resources
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "netaddr";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "0hx2npi0wnhwlcybilgwlddw6qffx1mb7a3sj4p9s7bvl33mgk6n";
};
LC_ALL = "en_US.UTF-8";
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ importlib-resources ];
checkInputs = [ glibcLocales pytestCheckHook ];
meta = with lib; {
homepage = "https://netaddr.readthedocs.io/en/latest/";
downloadPage = "https://github.com/netaddr/netaddr/releases";
changelog = "https://netaddr.readthedocs.io/en/latest/changes.html";
description = "A network address manipulation library for Python";
license = licenses.mit;
};
}