2021-02-19 19:06:45 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
2020-09-25 04:45:31 +00:00
|
|
|
, ipython
|
|
|
|
, ipywidgets
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2020-09-25 04:45:31 +00:00
|
|
|
, pyqt5
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lightparam";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.4.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "portugueslab";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "13hlkvjcyz2lhvlfqyavja64jccbidshhs39sl4fibrn9iq34s3i";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
ipython
|
|
|
|
ipywidgets
|
2020-04-24 23:36:52 +00:00
|
|
|
numpy
|
2020-09-25 04:45:31 +00:00
|
|
|
pyqt5
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "lightparam" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/portugueslab/lightparam";
|
|
|
|
description = "Another attempt at parameters in Python";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ tbenst ];
|
|
|
|
};
|
|
|
|
}
|