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
47
pkgs/development/python-modules/dj-rest-auth/default.nix
Normal file
47
pkgs/development/python-modules/dj-rest-auth/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, django-allauth
|
||||
, djangorestframework
|
||||
, djangorestframework-simplejwt
|
||||
, responses
|
||||
, unittest-xml-reporting
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dj-rest-auth";
|
||||
version = "2.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iMerica";
|
||||
repo = "dj-rest-auth";
|
||||
rev = version;
|
||||
sha256 = "sha256-vzcrGRaim1plksmkf8AC6sTl5P+106UG391Cy2yKQhQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "coveralls>=1.11.1" "" \
|
||||
--replace "==" ">="
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
djangorestframework
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
django-allauth
|
||||
djangorestframework-simplejwt
|
||||
responses
|
||||
unittest-xml-reporting
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "dj_rest_auth" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Authentication for Django Rest Framework";
|
||||
homepage = "https://github.com/iMerica/dj-rest-auth";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue