Commit 62d1bddc authored by Robert Schütz's avatar Robert Schütz
Browse files

python312Packages.inlinestyler: fix build

parent ec4a6600
Loading
Loading
Loading
Loading
+19 −3
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch2

# build system
, setuptools

# dependencies
, cssutils
@@ -15,16 +19,28 @@
buildPythonPackage rec {
  pname = "inlinestyler";
  version = "0.2.5";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dlanger";
    repo = "inlinestyler";
    rev = version;
    rev = "refs/tags/${version}";
    hash = "sha256-9TKXqW+5SiiNXnHW2lOVh3zhFhodM7a1UB2yXsEuX3I=";
  };

  propagatedBuildInputs = [
  patches = [
    # https://github.com/dlanger/inlinestyler/pull/33
    (fetchpatch2 {
      url = "https://github.com/dlanger/inlinestyler/commit/29fc1c256fd8f37c3e2fda34c975f0bcfe72cf9a.patch";
      hash = "sha256-35GWrfvXgpy1KAZ/0pdxsiKNTpDku6/ZX3KWfRUGQmc=";
    })
  ];

  build-system = [
    setuptools
  ];

  dependencies = [
    cssutils
    lxml
    requests