flatcam: init at 8.5

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