pythonPackages.Pweave: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 17:36:55 -04:00
parent c878599aab
commit e186e5a5ed
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 31 additions and 23 deletions

View File

@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, matplotlib
, pkgs
}:
buildPythonPackage rec {
pname = "Pweave";
version = "0.25";
src = fetchPypi {
inherit pname version;
sha256 = "1isqjz66c7vxdaqfwpkspki9p4054dsfx7pznwz28ik634hnj3qw";
};
buildInputs = [ mock pkgs.glibcLocales ];
propagatedBuildInputs = [ matplotlib ];
# fails due to trying to run CSS as test
doCheck = false;
meta = with stdenv.lib; {
description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
homepage = http://mpastell.com/pweave/ ;
license = licenses.bsd3;
};
}

View File

@ -3900,29 +3900,7 @@ in {
spotipy = callPackage ../development/python-modules/spotipy { };
Pweave = buildPythonPackage (rec {
name = "Pweave-0.25";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/f6/2f/e9735b04747ae5ef29d64e0b215fb0e11f1c89826097ac17342efebbbb84/Pweave-0.25.tar.gz";
sha256 = "1isqjz66c7vxdaqfwpkspki9p4054dsfx7pznwz28ik634hnj3qw";
};
buildInputs = with self; [ mock pkgs.glibcLocales ];
propagatedBuildInputs = with self; [
matplotlib
];
# fails due to trying to run CSS as test
doCheck = false;
meta = {
description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
homepage = http://mpastell.com/pweave/ ;
license = licenses.bsd3;
};
});
Pweave = callPackage ../development/python-modules/pweave { };
sqlalchemy = callPackage ../development/python-modules/sqlalchemy { };