1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
42 lines
819 B
Nix
42 lines
819 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
distutils,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "css-html-js-minify";
|
|
version = "2.5.5";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
extension = "zip";
|
|
hash = "sha256-Sp8R9+BJb1KE0SER87pP9f8gI9EvFdGVycSL2XATdGw=";
|
|
};
|
|
|
|
build-system = [
|
|
distutils
|
|
setuptools
|
|
];
|
|
|
|
# Tests are useless and broken
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "css_html_js_minify" ];
|
|
|
|
meta = {
|
|
description = "StandAlone Async cross-platform Minifier for the Web";
|
|
homepage = "https://github.com/juancarlospaco/css-html-js-minify";
|
|
license = with lib.licenses; [
|
|
gpl3Plus
|
|
lgpl3Plus
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [ FlorianFranzen ];
|
|
mainProgram = "css-html-js-minify";
|
|
};
|
|
}
|