2016-02-14 11:56:07 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages }:
|
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-02-14 11:56:07 +00:00
|
|
|
name = "OctoPrint-${version}";
|
2016-08-13 00:02:34 +00:00
|
|
|
version = "1.2.15";
|
2016-02-14 11:56:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foosel";
|
|
|
|
repo = "OctoPrint";
|
|
|
|
rev = version;
|
2016-08-13 00:02:34 +00:00
|
|
|
sha256 = "0qfragp7n8m7l5l30s5fz1x7xzini2sdh2y3m1ahs7ay8zp4xk56";
|
2016-02-14 11:56:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# We need old Tornado
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2016-08-13 00:02:34 +00:00
|
|
|
awesome-slugify flask_assets rsa requests2 pkginfo watchdog
|
|
|
|
semantic-version flask_principal werkzeug flaskbabel tornado_4_0_1
|
|
|
|
psutil pyserial flask_login netaddr markdown sockjs-tornado
|
|
|
|
pylru pyyaml sarge feedparser netifaces
|
2016-02-14 11:56:07 +00:00
|
|
|
];
|
|
|
|
|
2016-08-13 00:02:34 +00:00
|
|
|
# Jailbreak dependencies.
|
|
|
|
# Currently broken for new: tornado, pyserial, flask_login
|
2016-02-14 11:56:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i \
|
2016-08-13 00:02:34 +00:00
|
|
|
-e 's,werkzeug>=[^"]*,werkzeug,g' \
|
|
|
|
-e 's,requests>=[^"]*,requests,g' \
|
|
|
|
-e 's,pkginfo>=[^"]*,pkginfo,g' \
|
|
|
|
-e 's,semantic_version>=[^"]*,semantic_version,g' \
|
|
|
|
-e 's,psutil>=[^"]*,psutil,g' \
|
|
|
|
-e 's,Flask-Babel>=[^"]*,Flask-Babel,g' \
|
|
|
|
-e 's,Flask-Principal>=[^"]*,Flask-Principal,g' \
|
|
|
|
-e 's,markdown>=[^"]*,markdown,g' \
|
|
|
|
-e 's,Flask-Assets>=[^"]*,Flask-Assets,g' \
|
|
|
|
-e 's,rsa>=[^"]*,rsa,g' \
|
|
|
|
-e 's,PyYAML>=[^"]*,PyYAML,g' \
|
2016-02-14 11:56:07 +00:00
|
|
|
setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-04-29 23:58:00 +00:00
|
|
|
homepage = "http://octoprint.org/";
|
2016-02-14 11:56:07 +00:00
|
|
|
description = "The snappy web interface for your 3D printer";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|