Merge pull request #324725 from natsukium/ipy

python311Packages.ipy: refactor and remove nose
This commit is contained in:
Martin Weinelt 2024-07-09 17:45:07 +02:00 committed by GitHub
commit 151a815736
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,25 +2,26 @@
lib,
buildPythonPackage,
fetchPypi,
nose,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ipy";
version = "1.01";
format = "setuptools";
pyproject = true;
src = fetchPypi {
pname = "IPy";
inherit version;
sha256 = "edeca741dea2d54aca568fa23740288c3fe86c0f3ea700344571e9ef14a7cc1a";
hash = "sha256-7eynQd6i1UrKVo+iN0AojD/obA8+pwA0RXHp7xSnzBo=";
};
nativeCheckInputs = [ nose ];
build-system = [ setuptools ];
checkPhase = ''
nosetests -e fuzz
'';
pythonImportsCheck = [ "IPy" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Class and tools for handling of IPv4 and IPv6 addresses and networks";