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
51
pkgs/development/python-modules/sanic-testing/default.nix
Normal file
51
pkgs/development/python-modules/sanic-testing/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, httpx
|
||||
, sanic
|
||||
, websockets
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sanic-testing";
|
||||
version = "22.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sanic-org";
|
||||
repo = "sanic-testing";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ZsLQA8rP4RrbVSUy5n0WZs903fnF7jtFqrIe5JVuRIg=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"testsout"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
sanic
|
||||
websockets
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir $testsout
|
||||
cp -R tests $testsout/tests
|
||||
'';
|
||||
|
||||
# check in passthru.tests.pytest to escape infinite recursion with sanic
|
||||
doCheck = false;
|
||||
doInstallCheck = false;
|
||||
|
||||
passthru.tests = {
|
||||
pytest = callPackage ./tests.nix { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Core testing clients for the Sanic web framework";
|
||||
homepage = "https://github.com/sanic-org/sanic-testing";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ AluisioASG ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/sanic-testing/tests.nix
Normal file
26
pkgs/development/python-modules/sanic-testing/tests.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ buildPythonPackage
|
||||
, sanic
|
||||
, sanic-testing
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "sanic-testing-tests";
|
||||
inherit (sanic-testing) version;
|
||||
|
||||
src = sanic-testing.testsout;
|
||||
|
||||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
sanic
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sanic_testing"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue