Skip to content

Commit

Permalink
python3Packages.dufte: init at 0.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle committed Oct 11, 2020
1 parent 93b593a commit b5b8839
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/development/python-modules/dufte/default.nix
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -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
Expand Down

0 comments on commit b5b8839

Please sign in to comment.