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
52
pkgs/development/python-modules/django/3.nix
Normal file
52
pkgs/development/python-modules/django/3.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, substituteAll
|
||||
, geos
|
||||
, gdal
|
||||
, asgiref
|
||||
, pytz
|
||||
, sqlparse
|
||||
, pythonOlder
|
||||
, withGdal ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django";
|
||||
version = "3.2.13";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Django";
|
||||
inherit version;
|
||||
sha256 = "sha256-bZNJegqb9roOCxopzM3EDvv8dilyVbEwmzqISmiOxLY=";
|
||||
};
|
||||
|
||||
patches = lib.optional withGdal
|
||||
(substituteAll {
|
||||
src = ./django_3_set_geos_gdal_lib.patch;
|
||||
inherit geos;
|
||||
inherit gdal;
|
||||
extension = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
});
|
||||
|
||||
propagatedBuildInputs = [
|
||||
asgiref
|
||||
pytz
|
||||
sqlparse
|
||||
];
|
||||
|
||||
# too complicated to setup
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "django" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A high-level Python Web framework";
|
||||
homepage = "https://www.djangoproject.com/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ georgewhewell ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue