1{ lib, fetchPypi, fetchpatch, isPy27
2, buildPythonPackage
3, traits, apptools
4, python, ipykernel, ipython
5}:
6
7buildPythonPackage rec {
8 pname = "envisage";
9 version = "4.9.2";
10
11 disabled = isPy27;
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1srjmkhnz84nz5jd72vdsnc4fn7dd9jr8nyf3hzk6yx1dsn815gd";
16 };
17
18 propagatedBuildInputs = [ traits apptools ];
19
20 preCheck = ''
21 export HOME=$PWD/HOME
22 '';
23
24 # fix a test failure; should be merged in next release
25 patches = [ (fetchpatch {
26 url = "https://github.com/enthought/envisage/pull/248/commits/7b6d2dd615d5cb7455b200eb8f37e030bbf4df9e.patch";
27 sha256 = "0a3dmbpxwsn1bkjcjv9v7b751rcmppj6hc9wcgiayg4l9r2nrvyh";
28 }) ];
29
30 checkInputs = [
31 ipykernel ipython
32 ];
33
34 checkPhase = ''
35 runHook preCheck
36 ${python.interpreter} -m unittest
37 runHook postCheck
38 '';
39
40 meta = with lib; {
41 description = "Framework for building applications whose functionalities can be extended by adding 'plug-ins'";
42 homepage = "https://github.com/enthought/envisage";
43 maintainers = with lib.maintainers; [ knedlsepp ];
44 license = licenses.bsdOriginal;
45 };
46}