blob: f19608992fe0bb2f3a81cd59bbf48edac2f7a974 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
shapely,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "preprocess-cancellation";
version = "0.2.1";
pyproject = true;
# No tests in PyPI
src = fetchFromGitHub {
owner = "kageurufu";
repo = "cancelobject-preprocessor";
tag = version;
hash = "sha256-MJ4mwOFswLYHhg2LNZ+/ZwDvSjoxElVxlaWjArHV2NY=";
};
postPatch = ''
sed -i "/^addopts/d" pyproject.toml
cat >> pyproject.toml << EOF
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
EOF
'';
build-system = [
poetry-core
];
optional-dependencies = {
shapely = [ shapely ];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "preprocess_cancellation" ];
meta = {
description = "Klipper GCode Preprocessor for Object Cancellation";
homepage = "https://github.com/kageurufu/cancelobject-preprocessor";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ zhaofengli ];
};
}
|