python3Packages.pyrad: 2.4-2023-06-13 -> 2.4-2024-07-24
Update pyrad to latest commit (4 month old) as they cleaned up pyproject to remove support for old python version and remove problematic dependencies (netaddr 0.8)
This commit is contained in:
@@ -2,49 +2,24 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
poetry-core,
|
||||
netaddr,
|
||||
six,
|
||||
unittestCheckHook,
|
||||
fetchPypi,
|
||||
poetry-core,
|
||||
}:
|
||||
let
|
||||
netaddr_0_8_0 = netaddr.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "netaddr";
|
||||
inherit version;
|
||||
hash = "sha256-1sxXx6B7HZ0ukXqos2rozmHDW6P80bg8oxxaDuK1okM=";
|
||||
};
|
||||
});
|
||||
in
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyrad";
|
||||
version = "2.4-unstable-2023-06-13";
|
||||
format = "pyproject";
|
||||
version = "2.4-unstable-2024-07-24";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyradius";
|
||||
repo = pname;
|
||||
rev = "dd34c5a29b46d83b0bea841e85fd72b79f315b87";
|
||||
hash = "sha256-U4VVGkDDyN4J/tRDaDGSr2TSA4JmqIoQj5qn9qBAvQU=";
|
||||
rev = "f42a57cb0e80de42949810057d36df7c4a6b5146";
|
||||
hash = "sha256-5SPVeBL1oMZ/XXgKch2Hbk6BRU24HlVl4oXZ2agF1h8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
netaddr_0_8_0
|
||||
six
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace tests/testServer.py \
|
||||
--replace-warn "def testBind(self):" "def dontTestBind(self):" \
|
||||
--replace-warn "def testBindv6(self):" "def dontTestBindv6(self):" \
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "pyrad" ];
|
||||
|
||||
Reference in New Issue
Block a user