Skip to content

Commit 2a35f66

Browse files
author
Jonathan Ringer
committed
python3Packages.lightparam: fix source and deps
1 parent a9162ff commit 2a35f66

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

pkgs/development/python-modules/lightparam/default.nix

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
{ lib, pkgs, buildPythonPackage, fetchPypi, isPy3k
1+
{ lib, pkgs, buildPythonPackage, fetchFromGitHub, isPy3k
2+
, ipython
3+
, ipywidgets
24
, numpy
5+
, pyqt5
36
}:
47

58
buildPythonPackage rec {
69
pname = "lightparam";
710
version = "0.4.6";
811
disabled = !isPy3k;
9-
format = "wheel";
1012

11-
src = fetchPypi {
12-
inherit pname version;
13-
format = "wheel";
14-
python = "py3";
15-
sha256 = "eca63016524208afb6a06db19baf659e698cce3ae2e57be15b37bc988549c631";
13+
src = fetchFromGitHub {
14+
owner = "portugueslab";
15+
repo = pname;
16+
rev = "v${version}";
17+
sha256 = "13hlkvjcyz2lhvlfqyavja64jccbidshhs39sl4fibrn9iq34s3i";
1618
};
1719

1820
propagatedBuildInputs = [
21+
ipython
22+
ipywidgets
1923
numpy
24+
pyqt5
2025
];
2126

27+
pythonImportsCheck = [ "lightparam" ];
28+
2229
meta = {
2330
homepage = "https://github.com/portugueslab/lightparam";
2431
description = "Another attempt at parameters in Python";

0 commit comments

Comments
 (0)