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
76
pkgs/development/python-modules/trio/default.nix
Normal file
76
pkgs/development/python-modules/trio/default.nix
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||
, attrs
|
||||
, sortedcontainers
|
||||
, async_generator
|
||||
, idna
|
||||
, outcome
|
||||
, contextvars
|
||||
, pytestCheckHook
|
||||
, pyopenssl
|
||||
, trustme
|
||||
, sniffio
|
||||
, stdenv
|
||||
, jedi
|
||||
, astor
|
||||
, yapf
|
||||
, coreutils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "trio";
|
||||
version = "0.20.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-ZwpS0xFdDoeeGsg4pOuZmvMvhYFj46cE/kg53ipnYHA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
sortedcontainers
|
||||
async_generator
|
||||
idna
|
||||
outcome
|
||||
sniffio
|
||||
] ++ lib.optionals (pythonOlder "3.7") [ contextvars ];
|
||||
|
||||
# tests are failing on Darwin
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
checkInputs = [
|
||||
astor
|
||||
jedi
|
||||
pyopenssl
|
||||
pytestCheckHook
|
||||
trustme
|
||||
yapf
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace trio/tests/test_subprocess.py \
|
||||
--replace "/bin/sleep" "${coreutils}/bin/sleep"
|
||||
'';
|
||||
|
||||
# It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
|
||||
disabledTests = [
|
||||
"getnameinfo"
|
||||
"SocketType_resolve"
|
||||
"getprotobyname"
|
||||
"waitpid"
|
||||
"static_tool_sees_all_symbols"
|
||||
# tests pytest more than python
|
||||
"fallback_when_no_hook_claims_it"
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W" "ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "An async/await-native I/O library for humans and snake people";
|
||||
homepage = "https://github.com/python-trio/trio";
|
||||
license = with lib.licenses; [ mit asl20 ];
|
||||
maintainers = with lib.maintainers; [ catern ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue