Skip to content

Commit

Permalink
Remove lint from Sasview package
Browse files Browse the repository at this point in the history
  • Loading branch information
rprospero committed Mar 22, 2018
1 parent 068d792 commit 392def7
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 52 deletions.
23 changes: 19 additions & 4 deletions pkgs/applications/science/misc/sasview/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
{lib, fetchgit, gcc, python}:

let
xhtml2pdf = import ./xhtml2pdf.nix { inherit lib;
fetchPypi = python.pkgs.fetchPypi;
buildPythonPackage = python.pkgs.buildPythonPackage;
html5lib = python.pkgs.html5lib;
httplib2 = python.pkgs.httplib2;
nose = python.pkgs.nose;
pillow = python.pkgs.pillow;
pypdf2 = python.pkgs.pypdf2;
reportlab = python.pkgs.reportlab;
};

in

python.pkgs.buildPythonApplication rec {
name = "sasview-${version}";
pname = "sasview";
version = "4.1.2";

buildInputs = with python.pkgs; [
pytest
unittest-xml-reporting];

propagatedBuildInputs = with python.pkgs; [
bumps
gcc
Expand All @@ -17,13 +35,11 @@ python.pkgs.buildPythonApplication rec {
pillow
pylint
pyopencl
pytest
reportlab
sasmodels
scipy
six
sphinx
unittest-xml-reporting
wxPython
xhtml2pdf];

Expand All @@ -34,7 +50,6 @@ python.pkgs.buildPythonApplication rec {
};

patches = [./pyparsing-fix.patch ./local_config.patch];
sandbox = true;

meta = {
homepage = https://www.sasview.org;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ let
in

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "xhtml2pdf";
version = "0.2.1";

Expand Down
1 change: 0 additions & 1 deletion pkgs/development/python-modules/bumps/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ stdenv, buildPythonPackage, fetchPypi, six}:

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "bumps";
version = "0.7.6";

Expand Down
20 changes: 20 additions & 0 deletions pkgs/development/python-modules/periodictable/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{lib, fetchPypi, buildPythonPackage, numpy, pyparsing}:

buildPythonPackage rec{
pname = "periodictable";
version = "1.5.0";

propagatedBuildInputs = [numpy pyparsing];

src = fetchPypi {
inherit pname version;
sha256 = "1cjk6aqcz41nxm4fpriz01vqdafd6g57cjk0wh1iklk5cx6c085h";
};

meta = {
homepage = http://www.reflectometry.org/danse/software.html;
description = "an extensible periodic table of the elements prepopulated with data important to neutron and x-ray scattering experiments";
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ rprospero ];
};
}
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/sasmodels/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{lib, fetchgit, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils}:

buildPythonPackage rec {
name = "sasmodels-${version}";
pname = "sasmodels";
version = "0.96";

propagatedBuildInputs = [docutils matplotlib numpy pytest scipy];
buildInputs = [pytest];
propagatedBuildInputs = [docutils matplotlib numpy scipy];

preCheck = ''export HOME=$(mktemp -d)'';

Expand Down
23 changes: 23 additions & 0 deletions pkgs/development/python-modules/unittest-xml-reporting/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{lib, fetchPypi, buildPythonPackage, six}:

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "unittest-xml-reporting";
version = "2.1.1";

propagatedBuildInputs = [six];

# The tarball from Pypi doesn't actually contain the unit tests
doCheck = false;

src = fetchPypi {
inherit pname version;
sha256 = "1jwkqx5gfphkymp3xwqvlb94ng22gpbqh36vbbnsrpk1a0mammm6";
};
meta = with lib; {
homepage = https://github.com/xmlrunner/unittest-xml-reporting/tree/master/;
description = "A unittest runner that can save test results to XML files";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ rprospero ];
};
}
47 changes: 3 additions & 44 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12278,25 +12278,7 @@ in {
};
};

periodictable = buildPythonPackage rec{
name = "${pname}-${version}";
pname = "periodictable";
version = "1.5.0";

propagatedBuildInputs = with self; [numpy pyparsing];

src = fetchPypi {
inherit pname version;
sha256 = "1cjk6aqcz41nxm4fpriz01vqdafd6g57cjk0wh1iklk5cx6c085h";
};

meta = {
homepage = http://www.reflectometry.org/danse/software.html;
description = "an extensible periodic table of the elements prepopulated with data important to neutron and x-ray scattering experiments";
license = licenses.publicDomain;
maintainers = with maintainers; [ rprospero ];
};
};
periodictable = callPackage ../development/python-modules/periodictable { };

pg8000 = buildPythonPackage rec {
name = "pg8000-1.10.1";
Expand Down Expand Up @@ -17353,30 +17335,9 @@ in {
};
};

unittest-xml-reporting = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "unittest-xml-reporting";
version = "2.1.1";
unittest-xml-reporting = callPackage ../development/python-modules/unittest-xml-reporting { };

propagatedBuildInputs = with self; [six];

# The tarball from Pypi doesn't actually contain the unit tests
doCheck = false;

src = fetchPypi {
inherit pname version;
sha256 = "1jwkqx5gfphkymp3xwqvlb94ng22gpbqh36vbbnsrpk1a0mammm6";
};
meta = with stdenv.lib; {
homepage = https://github.com/xmlrunner/unittest-xml-reporting/tree/master/;
description = "A unittest runner that can save test results to XML files";
license = licenses.bsd2;
maintainers = with maintainers; [ rprospero ];
};
};


uritemplate_py = buildPythonPackage rec {
uritemplate_py = buildPythonPackage rec {
name = "uritemplate.py-${version}";
version = "0.3.0";

Expand Down Expand Up @@ -17902,8 +17863,6 @@ EOF
propagatedBuildInputs = with self; [ eventlib application ];
};

xhtml2pdf = callPackage ../development/python-modules/xhtml2pdf {};

xlib = buildPythonPackage (rec {
name = "xlib-${version}";
version = "0.17";
Expand Down

0 comments on commit 392def7

Please sign in to comment.