2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, matplotlib
|
|
|
|
, pkgs
|
|
|
|
, nbconvert
|
|
|
|
, markdown
|
|
|
|
, isPy3k
|
2022-05-18 14:49:53 +00:00
|
|
|
, ipykernel
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "pweave";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "0.30.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "Pweave";
|
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "5e5298d90e06414a01f48e0d6aa4c36a70c5f223d929f2a9c7e2d388451c7357";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
buildInputs = [ mock pkgs.glibcLocales ];
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [ ipykernel matplotlib nbconvert markdown ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# fails due to trying to run CSS as test
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
|
2021-08-05 21:33:18 +00:00
|
|
|
homepage = "https://mpastell.com/pweave/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|