2020-04-13 18:48:53 +01:00
|
|
|
{ lib, fetchPypi, fetchpatch, isPy27
|
|
|
|
, buildPythonPackage
|
2019-01-31 21:17:30 +00:00
|
|
|
, traits, apptools
|
2020-04-13 18:48:53 +01:00
|
|
|
, python, ipykernel, ipython
|
2019-01-31 21:17:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "envisage";
|
2020-04-13 18:48:53 +01:00
|
|
|
version = "4.9.2";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
2019-01-31 21:17:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-13 18:48:53 +01:00
|
|
|
sha256 = "1srjmkhnz84nz5jd72vdsnc4fn7dd9jr8nyf3hzk6yx1dsn815gd";
|
2019-01-31 21:17:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ traits apptools ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$PWD/HOME
|
|
|
|
'';
|
|
|
|
|
2020-04-13 18:48:53 +01:00
|
|
|
# fix a test failure; should be merged in next release
|
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://github.com/enthought/envisage/pull/248/commits/7b6d2dd615d5cb7455b200eb8f37e030bbf4df9e.patch";
|
|
|
|
sha256 = "0a3dmbpxwsn1bkjcjv9v7b751rcmppj6hc9wcgiayg4l9r2nrvyh";
|
|
|
|
}) ];
|
|
|
|
|
2019-01-31 21:17:30 +00:00
|
|
|
checkInputs = [
|
2020-04-13 18:48:53 +01:00
|
|
|
ipykernel ipython
|
2019-01-31 21:17:30 +00:00
|
|
|
];
|
|
|
|
|
2020-04-13 18:48:53 +01:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m unittest
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2019-01-31 21:17:30 +00:00
|
|
|
|
2020-04-13 18:48:53 +01:00
|
|
|
meta = with lib; {
|
2019-01-31 21:17:30 +00:00
|
|
|
description = "Framework for building applications whose functionalities can be extended by adding 'plug-ins'";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/enthought/envisage";
|
2020-04-13 18:48:53 +01:00
|
|
|
maintainers = with lib.maintainers; [ knedlsepp ];
|
2019-01-31 21:17:30 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
};
|
|
|
|
}
|