2016-02-14 14:56:07 +03:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages }:
|
|
|
|
|
2016-02-19 15:12:11 +03:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-02-14 14:56:07 +03:00
|
|
|
name = "OctoPrint-${version}";
|
2016-03-24 21:42:20 +03:00
|
|
|
version = "1.2.10";
|
2016-02-14 14:56:07 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "foosel";
|
|
|
|
repo = "OctoPrint";
|
|
|
|
rev = version;
|
2016-03-24 21:42:20 +03:00
|
|
|
sha256 = "1ips1083c4qrfnkssvp1lxrs92svlid29l225ifsymrinpbjawav";
|
2016-02-14 14:56:07 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
# We need old Tornado
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
awesome-slugify flask_assets watchdog rsa requests2 pkginfo pylru
|
|
|
|
semantic-version flask_principal sarge tornado_4_0_1 werkzeug netaddr flaskbabel
|
|
|
|
netifaces psutil pyserial flask_login pyyaml sockjs-tornado
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Jailbreak dependencies
|
|
|
|
sed -i \
|
|
|
|
-e 's,rsa==,rsa>=,g' \
|
|
|
|
-e 's,sockjs-tornado==,sockjs-tornado>=,g' \
|
|
|
|
-e 's,Flask-Principal==,Flask-Principal>=,g' \
|
|
|
|
-e 's,werkzeug==,werkzeug>=,g' \
|
|
|
|
-e 's,netaddr==,netaddr>=,g' \
|
|
|
|
-e 's,requests==,requests>=,g' \
|
|
|
|
-e 's,netifaces==,netifaces>=,g' \
|
|
|
|
-e 's,psutil==,psutil>=,g' \
|
|
|
|
-e 's,PyYAML==,PyYAML>=,g' \
|
|
|
|
setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-04-30 02:58:00 +03:00
|
|
|
homepage = "http://octoprint.org/";
|
2016-02-14 14:56:07 +03:00
|
|
|
description = "The snappy web interface for your 3D printer";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|