python3Packages.dufte: init at 0.2.9
This commit is contained in:
parent
93b593ae53
commit
b5b8839e0a
44
pkgs/development/python-modules/dufte/default.nix
Normal file
44
pkgs/development/python-modules/dufte/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1815,6 +1815,8 @@ in {
|
|||||||
|
|
||||||
duecredit = callPackage ../development/python-modules/duecredit { };
|
duecredit = callPackage ../development/python-modules/duecredit { };
|
||||||
|
|
||||||
|
dufte = callPackage ../development/python-modules/dufte { };
|
||||||
|
|
||||||
dugong = callPackage ../development/python-modules/dugong { };
|
dugong = callPackage ../development/python-modules/dugong { };
|
||||||
|
|
||||||
dulwich = if isPy3k then
|
dulwich = if isPy3k then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user