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
100
pkgs/development/python-modules/deal/default.nix
Normal file
100
pkgs/development/python-modules/deal/default.nix
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, flit-core
|
||||
, astroid
|
||||
, pytestCheckHook
|
||||
, docstring-parser
|
||||
, isort
|
||||
, marshmallow
|
||||
, pytest-cov
|
||||
, sphinx
|
||||
, hypothesis
|
||||
, vaa
|
||||
, deal-solver
|
||||
, pygments
|
||||
, typeguard
|
||||
, coverage
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "deal";
|
||||
version = "4.23.3";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "life4";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-duFxe2KSQQb7HB5KrrE32xzTb6QkQcrQssiuXLKao50=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# don't do coverage
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "\"--cov-fail-under=100\"," "" \
|
||||
--replace "\"--cov=deal\"," "" \
|
||||
--replace "\"--cov-report=html\"," "" \
|
||||
--replace "\"--cov-report=term-missing:skip-covered\"," ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
astroid
|
||||
deal-solver
|
||||
pygments
|
||||
typeguard
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
|
||||
docstring-parser
|
||||
marshmallow
|
||||
sphinx
|
||||
hypothesis
|
||||
vaa
|
||||
urllib3
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# needs internet access
|
||||
"test_smoke_has"
|
||||
"test_pure_offline"
|
||||
"test_raises_doesnt_override_another_contract"
|
||||
"test_raises_doesnt_override_another_contract_async"
|
||||
"test_raises_generator"
|
||||
# AttributeError: module 'vaa' has no attribute 'Error'
|
||||
"test_source_vaa_scheme"
|
||||
"test_vaa_scheme_and_custom_exception"
|
||||
"test_scheme_string_validation_args_correct"
|
||||
"test_method_chain_decorator_with_scheme_is_fulfilled"
|
||||
"test_scheme_contract_is_satisfied_when_setting_arg"
|
||||
"test_scheme_contract_is_satisfied_within_chain"
|
||||
"test_scheme_errors_rewrite_message"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# needs internet access
|
||||
"tests/test_runtime/test_offline.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "deal" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for design by contract (DbC) and checking values, exceptions, and side-effects";
|
||||
longDescription = ''
|
||||
In a nutshell, deal empowers you to write bug-free code.
|
||||
By adding a few decorators to your code, you get for free tests, static analysis, formal verification, and much more
|
||||
'';
|
||||
homepage = "https://github.com/life4/deal";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ gador ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue