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
60
pkgs/development/python-modules/aiohttp-swagger/default.nix
Normal file
60
pkgs/development/python-modules/aiohttp-swagger/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, jinja2
|
||||
, markupsafe
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-swagger";
|
||||
version = "1.0.15";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cr0hn";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-M43sNpbXWXFRTd549cZhvhO35nBB6OH+ki36BzSk87Q=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
jinja2
|
||||
markupsafe
|
||||
pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-aiohttp
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "markupsafe~=1.1.1" "markupsafe>=1.1.1" \
|
||||
--replace "jinja2~=2.11.2" "jinja2>=2.11.2"
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
# The custom client is obsolete
|
||||
rm tests/conftest.py
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiohttp_swagger"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Swagger API Documentation builder for aiohttp";
|
||||
homepage = "https://github.com/cr0hn/aiohttp-swagger";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ elohmeier ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue