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
45
pkgs/development/python-modules/result/default.nix
Normal file
45
pkgs/development/python-modules/result/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "result";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rustedpy";
|
||||
repo = "result";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-bEf3OJg6ksDvzZE7ezA58Q2FObb5V7BG8vkKtX284Jg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace '"--flake8",' "" \
|
||||
--replace '"--tb=short",' "" \
|
||||
--replace '"--cov=result",' "" \
|
||||
--replace '"--cov=tests",' "" \
|
||||
--replace '"--cov-report=term",' "" \
|
||||
--replace '"--cov-report=xml",' ""
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
#TODO: figure out the failure "match o:" Invalid Syntax
|
||||
"tests/test_pattern_matching.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "result" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple Result type for Python 3 inspired by Rust, fully type annotated";
|
||||
homepage = "https://github.com/rustedpy/result";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.kvark ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue