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
65
pkgs/development/python-modules/prance/default.nix
Normal file
65
pkgs/development/python-modules/prance/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, chardet
|
||||
, requests
|
||||
, ruamel-yaml
|
||||
, setuptools-scm
|
||||
, six
|
||||
, semver
|
||||
, pytestCheckHook
|
||||
, openapi-spec-validator
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "prance";
|
||||
version = "0.21.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RonnyPfannschmidt";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-kGANMHfWwhW3ZBw2ZVCJZR/bV2EPhcydMKhDeDTVwcQ=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
chardet
|
||||
requests
|
||||
ruamel-yaml
|
||||
six
|
||||
semver
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
openapi-spec-validator
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=prance --cov-report=term-missing --cov-fail-under=90" ""
|
||||
'';
|
||||
|
||||
# Disable tests that require network
|
||||
disabledTestPaths = [
|
||||
"tests/test_convert.py"
|
||||
];
|
||||
disabledTests = [
|
||||
"test_fetch_url_http"
|
||||
];
|
||||
pythonImportsCheck = [ "prance" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
|
||||
homepage = "https://github.com/RonnyPfannschmidt/prance";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue