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
44
pkgs/development/python-modules/drf-jwt/default.nix
Normal file
44
pkgs/development/python-modules/drf-jwt/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyjwt
|
||||
, djangorestframework
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-jwt";
|
||||
version = "1.19.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Styria-Digital";
|
||||
repo = "django-rest-framework-jwt";
|
||||
rev = version;
|
||||
hash = "sha256-bbkk78uYTG+JTzY3AyOmEVtVSgout/TETfr5N5fUto4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyjwt
|
||||
djangorestframework
|
||||
];
|
||||
|
||||
# requires setting up a django instance
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"rest_framework_jwt"
|
||||
"rest_framework_jwt.blacklist"
|
||||
# require setting DJANGO_SETTINGS_MODULE
|
||||
# "rest_framework_jwt.authentication"
|
||||
# "rest_framework_jwt.blacklist.views"
|
||||
# "rest_framework_jwt.settings"
|
||||
# "rest_framework_jwt.utils"
|
||||
# "rest_framework_jwt.views"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "JSON Web Token based authentication for Django REST framework";
|
||||
homepage = "https://github.com/Styria-Digital/django-rest-framework-jwt";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue