tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
flatcam: init at 8.5
Tom Repetti
5 years ago
10e5003d
9e3b2a9a
+71
3 changed files
expand all
collapse all
unified
split
pkgs
applications
science
electronics
flatcam
default.nix
release.patch
top-level
all-packages.nix
+56
pkgs/applications/science/electronics/flatcam/default.nix
···
1
1
+
{ lib
2
2
+
, python3Packages
3
3
+
, fetchFromBitbucket
4
4
+
, fetchpatch
5
5
+
}:
6
6
+
7
7
+
python3Packages.buildPythonApplication rec {
8
8
+
pname = "flatcam";
9
9
+
version = "8.5";
10
10
+
11
11
+
src = fetchFromBitbucket {
12
12
+
owner = "jpcgt";
13
13
+
repo = "${pname}";
14
14
+
rev = "533afd6a1772857cb633c011b5e0a15b60b1e92e"; # 8.5 with Red Hat packaging.
15
15
+
sha256 = "199kiiml18k34z1zhk2hbhibphmnv0kb11kxiajq52alps0mjb3m";
16
16
+
};
17
17
+
18
18
+
propagatedBuildInputs = with python3Packages; [
19
19
+
matplotlib
20
20
+
numpy
21
21
+
pyqt4
22
22
+
Rtree
23
23
+
scipy
24
24
+
setuptools
25
25
+
shapely
26
26
+
simplejson
27
27
+
six
28
28
+
svg-path
29
29
+
];
30
30
+
31
31
+
packaging_fix_pull_request_patch = fetchpatch {
32
32
+
name = "packaging_fix_pull_request.patch";
33
33
+
url = "https://bitbucket.org/trepetti/flatcam/commits/5591ed889d1f48a5190fe237b562cb932cb5876c/raw";
34
34
+
sha256 = "19rhjdrf1n1q29cgpcry6pl2kl90zq0d613hhkwdir9bhq5bkknp";
35
35
+
};
36
36
+
37
37
+
patches = [
38
38
+
packaging_fix_pull_request_patch
39
39
+
./release.patch
40
40
+
];
41
41
+
42
42
+
# Only non-GUI tests can be run deterministically in the Nix build environment.
43
43
+
checkPhase = ''
44
44
+
python -m unittest tests.test_excellon
45
45
+
python -m unittest tests.test_gerber_buffer
46
46
+
python -m unittest tests.test_paint
47
47
+
python -m unittest tests.test_pathconnect
48
48
+
'';
49
49
+
50
50
+
meta = with lib; {
51
51
+
description = "2-D post processing for PCB fabrication on CNC routers.";
52
52
+
homepage = "https://bitbucket.org/jpcgt/flatcam";
53
53
+
license = licenses.mit;
54
54
+
maintainers = with maintainers; [ trepetti ];
55
55
+
};
56
56
+
}
+13
pkgs/applications/science/electronics/flatcam/release.patch
···
1
1
+
diff --git a/FlatCAMVersion.py b/FlatCAMVersion.py
2
2
+
index ba9e04a5..2c64d5a6 100644
3
3
+
--- a/FlatCAMVersion.py
4
4
+
+++ b/FlatCAMVersion.py
5
5
+
@@ -16,7 +16,7 @@ version = {
6
6
+
"number": 8.5,
7
7
+
"date": (2016, 7, 1), # Year, Month, Day
8
8
+
"name": None,
9
9
+
- "release": False,
10
10
+
+ "release": True,
11
11
+
}
12
12
+
13
13
+
+2
pkgs/top-level/all-packages.nix
···
25829
25829
25830
25830
csxcad = callPackage ../applications/science/electronics/csxcad { };
25831
25831
25832
25832
+
flatcam = callPackage ../applications/science/electronics/flatcam { };
25833
25833
+
25832
25834
fparser = callPackage ../applications/science/electronics/fparser { };
25833
25835
25834
25836
geda = callPackage ../applications/science/electronics/geda {