Skip to content

Commit

Permalink
python3Packages.lightparam: fix source and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ringer committed Sep 19, 2020
1 parent a9162ff commit 2a35f66
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions pkgs/development/python-modules/lightparam/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
{ lib, pkgs, buildPythonPackage, fetchPypi, isPy3k
{ lib, pkgs, buildPythonPackage, fetchFromGitHub, isPy3k
, ipython
, ipywidgets
, numpy
, pyqt5
}:

buildPythonPackage rec {
pname = "lightparam";
version = "0.4.6";
disabled = !isPy3k;
format = "wheel";

src = fetchPypi {
inherit pname version;
format = "wheel";
python = "py3";
sha256 = "eca63016524208afb6a06db19baf659e698cce3ae2e57be15b37bc988549c631";
src = fetchFromGitHub {
owner = "portugueslab";
repo = pname;
rev = "v${version}";
sha256 = "13hlkvjcyz2lhvlfqyavja64jccbidshhs39sl4fibrn9iq34s3i";
};

propagatedBuildInputs = [
ipython
ipywidgets
numpy
pyqt5
];

pythonImportsCheck = [ "lightparam" ];

meta = {
homepage = "https://github.com/portugueslab/lightparam";
description = "Another attempt at parameters in Python";
Expand Down

0 comments on commit 2a35f66

Please sign in to comment.