mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-23 00:11:11 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, rcssmin
|
|
, rjsmin
|
|
, django-appconf
|
|
, beautifulsoup4
|
|
, brotli
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-compressor";
|
|
version = "4.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "django_compressor";
|
|
inherit version;
|
|
hash = "sha256-js5iHSqY9sZjVIDLizcB24kKmfeT+VyiDLAKvBlNMx0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "rcssmin == 1.1.0" "rcssmin>=1.1.0" \
|
|
--replace "rjsmin == 1.2.0" "rjsmin>=1.2.0"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
rcssmin
|
|
rjsmin
|
|
django-appconf
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"compressor"
|
|
];
|
|
|
|
doCheck = false; # missing package django-sekizai
|
|
|
|
nativeCheckInputs = [
|
|
beautifulsoup4
|
|
brotli
|
|
pytestCheckHook
|
|
];
|
|
|
|
DJANGO_SETTINGS_MODULE = "compressor.test_settings";
|
|
|
|
meta = with lib; {
|
|
description = "Compresses linked and inline JavaScript or CSS into single cached files";
|
|
homepage = "https://django-compressor.readthedocs.org/en/latest/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ desiderius ];
|
|
};
|
|
}
|