Skip to content

Commit a8c496d

Browse files
committed
cq-warehouse: init
1 parent b26bcc6 commit a8c496d

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

pkgs/python/cq-warehouse/default.nix

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
fetchFromGitHub,
3+
buildPythonPackage,
4+
pytestCheckHook,
5+
setuptools,
6+
cadquery,
7+
}:
8+
let
9+
rev = "daa4650";
10+
in
11+
buildPythonPackage {
12+
pname = "cq-warehouse";
13+
version = rev;
14+
15+
src = fetchFromGitHub {
16+
owner = "gumyr";
17+
repo = "cq_warehouse";
18+
rev = rev;
19+
hash = "sha256-1wsYbjPzC9BGEDM9YZcAsnIGMc3fom75bp+LgZ/rqJw=";
20+
};
21+
22+
pyproject = true;
23+
24+
build-system = [ setuptools ];
25+
26+
dependencies = [
27+
cadquery
28+
];
29+
30+
patches = [
31+
./pyproject.patch
32+
];
33+
34+
nativeCheckInputs = [ pytestCheckHook ];
35+
36+
disabledTests = [
37+
"test_five_sprocket_chain"
38+
"test_missing_link"
39+
"test_oblique_plane"
40+
"test_assemble_chain_transmission"
41+
"test_make_link"
42+
];
43+
44+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- a/pyproject.toml
2+
+++ b/pyproject.toml
3+
@@ -4,3 +4,6 @@ requires = [
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"
7+
+
8+
+[tool.pytest.ini_options]
9+
+python_files = "*_tests.py"

pkgs/python/overlay.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ final: prev: {
88
cadquery = final.callPackage ./cadquery { };
99
casadi = final.toPythonModule (casadi.override { pythonSupport = true; });
1010
cq-kit = final.callPackage ./cq-kit { };
11+
cq-warehouse = final.callPackage ./cq-warehouse { };
1112
libclang = prev.libclang.override { llvmPackages = llvmPackages_15; };
1213
nlopt = final.callPackage ./nlopt { };
1314
ocp = final.callPackage ./ocp { inherit ocp; };

0 commit comments

Comments
 (0)