Unverified Commit 8219fad9 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.css-html-js-minify: refactor (#341810)

parents 23f2ab0b 36e343e8
Loading
Loading
Loading
Loading
+15 −4
Original line number Diff line number Diff line
@@ -2,26 +2,36 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  distutils,
  setuptools,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "css-html-js-minify";
  version = "2.5.5";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "4a9f11f7e0496f5284d12111f3ba4ff5ff2023d12f15d195c9c48bd97013746c";
    hash = "sha256-Sp8R9+BJb1KE0SER87pP9f8gI9EvFdGVycSL2XATdGw=";
  };

  doCheck = false; # Tests are useless and broken
  build-system = [
    distutils
    setuptools
  ];

  # Tests are useless and broken
  doCheck = false;

  pythonImportsCheck = [ "css_html_js_minify" ];

  meta = with lib; {
    description = "StandAlone Async cross-platform Minifier for the Web";
    mainProgram = "css-html-js-minify";
    homepage = "https://github.com/juancarlospaco/css-html-js-minify";
    license = with licenses; [
      gpl3Plus
@@ -29,5 +39,6 @@ buildPythonPackage rec {
      mit
    ];
    maintainers = with maintainers; [ FlorianFranzen ];
    mainProgram = "css-html-js-minify";
  };
}
+17 −3
Original line number Diff line number Diff line
@@ -7,14 +7,16 @@
  lxml,
  python-slugify,
  pythonOlder,
  setuptools,
  sphinx,
  unidecode,
  versioneer,
}:

buildPythonPackage rec {
  pname = "sphinx-material";
  version = "0.0.36";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -24,7 +26,17 @@ buildPythonPackage rec {
    hash = "sha256-7v9ffT3AFq8yuv33DGbmcdFch1Tb4GE9+9Yp++2RKGk=";
  };

  propagatedBuildInputs = [
  postPatch = ''
    # Remove vendorized versioneer.py
    rm versioneer.py
  '';

  build-system = [
    setuptools
    versioneer
  ];

  dependencies = [
    sphinx
    beautifulsoup4
    python-slugify
@@ -33,13 +45,15 @@ buildPythonPackage rec {
    lxml
  ];

  doCheck = false; # no tests
  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "sphinx_material" ];

  meta = with lib; {
    description = "Material-based, responsive theme inspired by mkdocs-material";
    homepage = "https://bashtage.github.io/sphinx-material";
    changelog = "https://github.com/bashtage/sphinx-material/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ FlorianFranzen ];
  };