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
61
pkgs/development/python-modules/trio-asyncio/default.nix
Normal file
61
pkgs/development/python-modules/trio-asyncio/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, trio
|
||||
, outcome
|
||||
, sniffio
|
||||
, pytest-trio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "trio-asyncio";
|
||||
version = "0.12.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "trio_asyncio";
|
||||
inherit version;
|
||||
sha256 = "824be23b0c678c0df942816cdb57b92a8b94f264fffa89f04626b0ba2d009768";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
trio
|
||||
outcome
|
||||
sniffio
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-trio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# https://github.com/python-trio/trio-asyncio/issues/112
|
||||
"-W"
|
||||
"ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/python" # tries to import internal API test.test_asyncio
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"trio_asyncio"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Re-implementation of the asyncio mainloop on top of Trio";
|
||||
homepage = "https://github.com/python-trio/trio-asyncio";
|
||||
license = with licenses; [ asl20 /* or */ mit ];
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue