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
58
pkgs/development/python-modules/drf-yasg/default.nix
Normal file
58
pkgs/development/python-modules/drf-yasg/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, inflection
|
||||
, ruamel-yaml
|
||||
, setuptools-scm
|
||||
, six
|
||||
, coreapi
|
||||
, djangorestframework
|
||||
, pytestCheckHook
|
||||
, pytest-django
|
||||
, datadiff
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-yasg";
|
||||
version = "1.20.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/axnsan12/drf-yasg/pull/710
|
||||
substituteInPlace requirements/base.txt --replace packaging ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
inflection
|
||||
ruamel-yaml
|
||||
coreapi
|
||||
djangorestframework
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-django
|
||||
datadiff
|
||||
];
|
||||
|
||||
# ImportError: No module named 'testproj.settings'
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "drf_yasg" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
|
||||
homepage = "https://github.com/axnsan12/drf-yasg";
|
||||
maintainers = with maintainers; [ ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue