at 22.05-pre 814 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, importlib-metadata 6, matplotlib 7, numpy 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "dufte"; 13 version = "0.2.27"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "nschloe"; 18 repo = pname; 19 rev = version; 20 sha256 = "1i68h224hx9clxj3l0rd2yigsi6fqsr3x10vj5hf3j6s69iah7r3"; 21 }; 22 format = "pyproject"; 23 24 propagatedBuildInputs = [ 25 matplotlib 26 numpy 27 ] ++ lib.optionals (pythonOlder "3.8") [ 28 importlib-metadata 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "dufte" ]; 36 37 meta = with lib; { 38 description = "Clean matplotlib plots"; 39 homepage = "https://github.com/nschloe/dufte"; 40 license = licenses.gpl3Plus; 41 maintainers = with maintainers; [ ris ]; 42 }; 43}