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
69
pkgs/development/python-modules/cloudsplaining/default.nix
Normal file
69
pkgs/development/python-modules/cloudsplaining/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, boto3
|
||||
, botocore
|
||||
, buildPythonPackage
|
||||
, cached-property
|
||||
, click
|
||||
, click-option-group
|
||||
, fetchFromGitHub
|
||||
, jinja2
|
||||
, markdown
|
||||
, policy-sentry
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, schema
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cloudsplaining";
|
||||
version = "0.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "salesforce";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-HdZHRK/Q544z9ySbjNIjqiXzel0UTsnb9tuXawbkwZg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
boto3
|
||||
botocore
|
||||
cached-property
|
||||
click
|
||||
click-option-group
|
||||
jinja2
|
||||
markdown
|
||||
policy-sentry
|
||||
pyyaml
|
||||
schema
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Ignore pinned versions
|
||||
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" requirements.txt
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"test_policy_expansion"
|
||||
"test_statement_details_for_allow_not_action"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cloudsplaining"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for AWS IAM security assessment";
|
||||
homepage = "https://github.com/salesforce/cloudsplaining";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue