pythonPackages.nosejs: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 01:29:05 -04:00 committed by Frederik Rietdijk
parent 94b15aa9e6
commit 648a03cc7c
2 changed files with 29 additions and 13 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
}:
buildPythonPackage rec {
pname = "NoseJS";
version = "0.9.4";
src = fetchPypi {
inherit pname version;
sha256 = "0qrhkd3sga56qf6k0sqyhwfcladwi05gl6aqmr0xriiq1sgva5dy";
};
buildInputs = [ nose ];
checkPhase = ''
nosetests -v
'';
meta = with stdenv.lib; {
homepage = https://pypi.org/project/NoseJS/;
description = "A Nose plugin for integrating JavaScript tests into a Python test suite";
license = licenses.free;
};
}

View File

@ -2987,19 +2987,7 @@ in {
nosexcover = callPackage ../development/python-modules/nosexcover { };
nosejs = buildPythonPackage {
name = "nosejs-0.9.4";
src = pkgs.fetchurl {
url = mirror://pypi/N/NoseJS/NoseJS-0.9.4.tar.gz;
sha256 = "0qrhkd3sga56qf6k0sqyhwfcladwi05gl6aqmr0xriiq1sgva5dy";
};
buildInputs = with self; [ nose ];
checkPhase = ''
nosetests -v
'';
};
nosejs = callPackage ../development/python-modules/nosejs { };
nose-cprof = buildPythonPackage rec {
name = "nose-cprof-${version}";