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
54
pkgs/development/python-modules/respx/default.nix
Normal file
54
pkgs/development/python-modules/respx/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, httpcore
|
||||
, httpx
|
||||
, flask
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, starlette
|
||||
, trio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "respx";
|
||||
version = "0.19.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lundberg";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-uNmSBJOQF4baq8AWzfwj0kinO19jr6Mp9Yblys/WmZs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
httpcore
|
||||
httpx
|
||||
flask
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
starlette
|
||||
trio
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"test_pass_through"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "respx" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for mocking HTTPX";
|
||||
homepage = "https://lundberg.github.io/respx/";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue