2020-09-15 19:38:59 +01:00
|
|
|
{ lib, pkgs, buildPythonPackage, fetchFromGitHub, isPy3k
|
|
|
|
, ipython
|
|
|
|
, ipywidgets
|
2019-10-31 20:54:43 +00:00
|
|
|
, numpy
|
2020-09-15 19:38:59 +01:00
|
|
|
, pyqt5
|
2019-10-31 20:54:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lightparam";
|
2020-08-16 18:31:06 +01:00
|
|
|
version = "0.4.6";
|
2019-10-31 20:54:43 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2020-09-15 19:38:59 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "portugueslab";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "13hlkvjcyz2lhvlfqyavja64jccbidshhs39sl4fibrn9iq34s3i";
|
2019-10-31 20:54:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-09-15 19:38:59 +01:00
|
|
|
ipython
|
|
|
|
ipywidgets
|
2019-10-31 20:54:43 +00:00
|
|
|
numpy
|
2020-09-15 19:38:59 +01:00
|
|
|
pyqt5
|
2019-10-31 20:54:43 +00:00
|
|
|
];
|
|
|
|
|
2020-09-15 19:38:59 +01:00
|
|
|
pythonImportsCheck = [ "lightparam" ];
|
|
|
|
|
2019-10-31 20:54:43 +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 ];
|
|
|
|
};
|
|
|
|
}
|