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
50
pkgs/development/python-modules/pika/default.nix
Normal file
50
pkgs/development/python-modules/pika/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, gevent
|
||||
, nose
|
||||
, mock
|
||||
, twisted
|
||||
, tornado
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pika";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pika";
|
||||
repo = "pika";
|
||||
rev = version;
|
||||
sha256 = "sha256-Wog6Wxa8V/zv/bBrFOigZi6KE5qRf82bf1GK2XwvpDI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ gevent tornado twisted ];
|
||||
|
||||
checkInputs = [ nose mock ];
|
||||
|
||||
postPatch = ''
|
||||
# don't stop at first test failure
|
||||
# don't run acceptance tests because they access the network
|
||||
# don't report test coverage
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "stop = 1" "stop = 0" \
|
||||
--replace "tests=tests/unit,tests/acceptance" "tests=tests/unit" \
|
||||
--replace "with-coverage = 1" "with-coverage = 0"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
PIKA_TEST_TLS=true nosetests
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
|
||||
homepage = "https://pika.readthedocs.org";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue