2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-27 22:36:55 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, matplotlib
|
|
|
|
, pkgs
|
2019-01-04 00:15:56 +00:00
|
|
|
, nbconvert
|
|
|
|
, markdown
|
|
|
|
, isPy3k
|
2018-10-27 22:36:55 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Pweave";
|
2018-11-04 10:35:10 +00:00
|
|
|
version = "0.30.3";
|
2018-10-27 22:36:55 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:10 +00:00
|
|
|
sha256 = "5e5298d90e06414a01f48e0d6aa4c36a70c5f223d929f2a9c7e2d388451c7357";
|
2018-10-27 22:36:55 +01:00
|
|
|
};
|
|
|
|
|
2019-01-04 00:15:56 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-10-27 22:36:55 +01:00
|
|
|
buildInputs = [ mock pkgs.glibcLocales ];
|
2019-01-04 00:15:56 +00:00
|
|
|
propagatedBuildInputs = [ matplotlib nbconvert markdown ];
|
2018-10-27 22:36:55 +01:00
|
|
|
|
|
|
|
# fails due to trying to run CSS as test
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-27 22:36:55 +01:00
|
|
|
description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://mpastell.com/pweave/";
|
2018-10-27 22:36:55 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|