mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 10:00:56 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
29 lines
1,012 B
Nix
29 lines
1,012 B
Nix
{ lib, buildPythonPackage, fetchPypi,
|
|
django, jinja2, pytz, tox
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-jinja";
|
|
version = "2.4.1";
|
|
|
|
meta = {
|
|
description = "Simple and nonobstructive jinja2 integration with Django";
|
|
homepage = https://github.com/niwinz/django-jinja;
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8a49d73de616a12075eee14c6d3bbab936261a463457d40348d8b8e2995cfbed";
|
|
};
|
|
|
|
buildInputs = [ django pytz tox ];
|
|
propagatedBuildInputs = [ django jinja2 ];
|
|
|
|
# python installed: The directory '/homeless-shelter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,appdirs==1.4.3,Django==1.11.1,django-jinja==2.2.2,Jinja2==2.9.6,MarkupSafe==1.0,packaging==16.8,pyparsing==2.2.0,pytz==2017.2,six==1.10.0
|
|
doCheck = false;
|
|
checkPhase = ''
|
|
tox
|
|
'';
|
|
}
|