python3Packages.dufte: init at 0.2.9

This commit is contained in:
Robert Scott 2020-09-26 14:16:11 +01:00
parent 93b593ae53
commit b5b8839e0a
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
, importlib-metadata
, matplotlib
, numpy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dufte";
version = "0.2.9";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0nkaczipbsm8c14j9svxry2wigmn5iharibb6b8g062sjaph8x17";
};
format = "pyproject";
propagatedBuildInputs = [
matplotlib
numpy
] ++ stdenv.lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
preCheck = ''
export HOME=$TMPDIR
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
'';
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dufte" ];
meta = with stdenv.lib; {
description = "Clean matplotlib plots";
homepage = "https://github.com/nschloe/dufte";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ris ];
};
}

View file

@ -1815,6 +1815,8 @@ in {
duecredit = callPackage ../development/python-modules/duecredit { };
dufte = callPackage ../development/python-modules/dufte { };
dugong = callPackage ../development/python-modules/dugong { };
dulwich = if isPy3k then