2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-09-26 15:16:11 +02:00
|
|
|
, buildPythonPackage
|
2021-08-01 11:10:05 +02:00
|
|
|
, fetchFromGitHub
|
2020-09-26 15:16:11 +02:00
|
|
|
, pythonOlder
|
|
|
|
, importlib-metadata
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dufte";
|
2021-08-01 11:10:05 +02:00
|
|
|
version = "0.2.27";
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-09-26 15:16:11 +02:00
|
|
|
|
2021-08-01 11:10:05 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nschloe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1i68h224hx9clxj3l0rd2yigsi6fqsr3x10vj5hf3j6s69iah7r3";
|
2020-09-26 15:16:11 +02:00
|
|
|
};
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
2021-01-24 01:29:22 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
2020-09-26 15:16:11 +02:00
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
2021-08-01 11:10:05 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-02 13:41:05 +01:00
|
|
|
|
2020-09-26 15:16:11 +02:00
|
|
|
pythonImportsCheck = [ "dufte" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-09-26 15:16:11 +02:00
|
|
|
description = "Clean matplotlib plots";
|
|
|
|
homepage = "https://github.com/nschloe/dufte";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ ris ];
|
|
|
|
};
|
|
|
|
}
|