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
55
pkgs/development/python-modules/cfn-flip/default.nix
Normal file
55
pkgs/development/python-modules/cfn-flip/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cfn-flip";
|
||||
version = "1.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "awslabs";
|
||||
repo = "aws-cfn-template-flip";
|
||||
rev = version;
|
||||
hash = "sha256-1cV0mHc6+P0CbnLIMSSwNEzDB+1QzNjioH/EoIo40xU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
pyyaml
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" tox.ini
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# TypeError: load() missing 1 required positional argument: 'Loader'
|
||||
"test_flip_to_yaml_with_longhand_functions"
|
||||
"test_yaml_no_ordered_dict"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cfn_flip"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool for converting AWS CloudFormation templates between JSON and YAML formats";
|
||||
homepage = "https://github.com/awslabs/aws-cfn-template-flip";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ kamadorueda psyanticy ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue