1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python.pkgs.ipython_genutils: move expression

This commit is contained in:
Frederik Rietdijk 2017-10-29 12:24:45 +01:00
parent bd7074961a
commit dde8ded1ef
2 changed files with 31 additions and 24 deletions

View file

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, glibcLocales
}:
buildPythonPackage rec {
pname = "ipython_genutils";
version = "0.2.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8";
};
checkInputs = [ nose glibcLocales ];
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests -v ipython_genutils/tests
'';
meta = {
description = "Vestigial utilities from IPython";
homepage = http://ipython.org/;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}

View file

@ -10503,30 +10503,7 @@ in {
ipython_6 = callPackage ../development/python-modules/ipython { };
ipython_genutils = buildPythonPackage rec {
version = "0.2.0";
name = "ipython_genutils-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/i/ipython_genutils/${name}.tar.gz";
sha256 = "eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8";
};
LC_ALL = "en_US.UTF-8";
buildInputs = with self; [ nose pkgs.glibcLocales ];
checkPhase = ''
nosetests -v ipython_genutils/tests
'';
meta = {
description = "Vestigial utilities from IPython";
homepage = http://ipython.org/;
license = licenses.bsd3;
maintainers = with maintainers; [ fridh ];
};
};
ipython_genutils = callPackage ../development/python-modules/ipython_genutils { };
ipywidgets = callPackage ../development/python-modules/ipywidgets { };