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
57
pkgs/development/python-modules/hypothesmith/default.nix
Normal file
57
pkgs/development/python-modules/hypothesmith/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, hypothesis
|
||||
, lark
|
||||
, libcst
|
||||
, parso
|
||||
, pytestCheckHook
|
||||
, pytest-xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hypothesmith";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0fb7b3fd03d76eddd4474b0561e1c2662457593a74cc300fd27e5409cd4d7922";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./remove-black.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "lark-parser" "lark"
|
||||
|
||||
substituteInPlace tox.ini \
|
||||
--replace "--cov=hypothesmith" "" \
|
||||
--replace "--cov-branch" "" \
|
||||
--replace "--cov-report=term-missing:skip-covered" "" \
|
||||
--replace "--cov-fail-under=100" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ hypothesis lark libcst ];
|
||||
|
||||
checkInputs = [ parso pytestCheckHook pytest-xdist ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-v"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/Zac-HD/hypothesmith/issues/21
|
||||
"test_source_code_from_libcst_node_type"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "hypothesmith" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Hypothesis strategies for generating Python programs, something like CSmith";
|
||||
homepage = "https://github.com/Zac-HD/hypothesmith";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue