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
68
pkgs/development/python-modules/nats-py/default.nix
Normal file
68
pkgs/development/python-modules/nats-py/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, ed25519
|
||||
, fetchFromGitHub
|
||||
, nats-server
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, uvloop
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nats-py";
|
||||
version = "2.1.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nats-io";
|
||||
repo = "nats.py";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-anQBy+TOEGJhAv1C5AvLL1KNLD/jiHA7Tze92Ir7Ie8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ed25519
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
nats-server
|
||||
pytestCheckHook
|
||||
uvloop
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=nats --cov-report html" ""
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# RuntimeError: Event loop is closed
|
||||
"test_subscribe_no_echo"
|
||||
"test_publish"
|
||||
"test_publish_verbose"
|
||||
"test_fetch_max_waiting_fetch_one"
|
||||
"test_fetch_n"
|
||||
"test_consumer_management"
|
||||
"test_ephemeral_subscribe"
|
||||
"test_queue_subscribe_deliver_group"
|
||||
"test_subscribe_push_bound"
|
||||
"test_double_acking_subscribe"
|
||||
"test_flow_control"
|
||||
"test_ordered_consumer"
|
||||
"test_ordered_consumer_single_loss"
|
||||
"test_kv_simple"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"nats"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for NATS.io";
|
||||
homepage = "https://github.com/nats-io/nats.py";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue