nixpkgs-suyu/pkgs/development/python-modules/django_compressor/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

23 lines
709 B
Nix

{ stdenv, buildPythonPackage, fetchPypi,
rcssmin, rjsmin, django_appconf }:
buildPythonPackage rec {
pname = "django_compressor";
version = "2.2";
src = fetchPypi {
inherit pname version;
sha256 = "9616570e5b08e92fa9eadc7a1b1b49639cce07ef392fc27c74230ab08075b30f";
};
# Need to setup django testing
doCheck = false;
propagatedBuildInputs = [ rcssmin rjsmin django_appconf ];
meta = with stdenv.lib; {
description = "Compresses linked and inline JavaScript or CSS into single cached files";
homepage = http://django-compressor.readthedocs.org/en/latest/;
license = licenses.mit;
maintainers = with maintainers; [ desiderius ];
};
}