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
44
pkgs/development/python2-modules/mock/default.nix
Normal file
44
pkgs/development/python2-modules/mock/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, funcsigs
|
||||
, six
|
||||
, pbr
|
||||
, python
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mock";
|
||||
version = "3.0.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six pbr ] ++ lib.optionals isPy27 [ funcsigs ];
|
||||
|
||||
# On PyPy for Python 2.7 in particular, Mock's tests have a known failure.
|
||||
# Mock upstream has a decoration to disable the failing test and make
|
||||
# everything pass, but it is not yet released. The commit:
|
||||
# https://github.com/testing-cabal/mock/commit/73bfd51b7185#diff-354f30a63fb0907d4ad57269548329e3L12
|
||||
#doCheck = !(python.isPyPy && python.isPy27);
|
||||
doCheck = false; # Infinite recursion pytest
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mock objects for Python";
|
||||
homepage = "http://python-mock.sourceforge.net/";
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue