uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
62
pkgs/development/python-modules/pyrad/default.nix
Normal file
62
pkgs/development/python-modules/pyrad/default.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, lib
|
||||
, poetry-core
|
||||
, netaddr
|
||||
, six
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyrad";
|
||||
version = "2.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyradius";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-oqgkE0xG/8cmLeRZdGoHkaHbjtByeJwzBJwEdxH8oNY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Migrate to poetry-core
|
||||
url = "https://github.com/pyradius/pyrad/commit/a4b70067dd6269e14a2f9530d820390a8a454231.patch";
|
||||
hash = "sha256-1We9wrVY3Or3GLIKK6hZvEjVYv6JOaahgP9zOMvgErE=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
netaddr
|
||||
six
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace tests/testServer.py \
|
||||
--replace "def testBind(self):" "def dontTestBind(self):" \
|
||||
--replace "def testBindv6(self):" "def dontTestBindv6(self):"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m unittest discover
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyrad"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python RADIUS Implementation";
|
||||
homepage = "https://github.com/pyradius/pyrad";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ globin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue