11 buildPythonPackage rec {
12 pname = "preprocess-cancellation";
14 disabled = pythonOlder "3.6"; # >= 3.6
18 src = fetchFromGitHub {
20 repo = "cancelobject-preprocessor";
22 hash = "sha256-mn3/etXA5dkL+IsyxwD4/XjU/t4/roYFVyqQxlLOoOI=";
30 sed -i "/^addopts/d" pyproject.toml
32 # setuptools 61 compatibility
33 # error: Multiple top-level packages discovered in a flat-layout: ['STLs', 'GCode'].
35 mv GCode STLs test_* tests
36 substituteInPlace tests/test_preprocessor.py \
37 --replace "./GCode" "./tests/GCode"
38 substituteInPlace tests/test_preprocessor_with_shapely.py \
39 --replace "./GCode" "./tests/GCode"
47 propagatedBuildInputs = [
55 pythonImportsCheck = [ "preprocess_cancellation" ];
58 description = "Klipper GCode Preprocessor for Object Cancellation";
59 homepage = "https://github.com/kageurufu/cancelobject-preprocessor";
60 license = licenses.gpl3Only;
61 maintainers = with maintainers; [ zhaofengli ];