1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, matplotlib 5, palettable 6, pandas 7, pytestCheckHook 8, pythonOlder 9, scipy 10}: 11 12buildPythonPackage rec { 13 pname = "mizani"; 14 version = "0.7.4"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "has2k1"; 21 repo = pname; 22 rev = "v${version}"; 23 hash = "sha256-oqbo/aQ5L1nQO8BvXH6/8PBPiWcv2m/LUjwow8+J90w="; 24 }; 25 26 propagatedBuildInputs = [ 27 matplotlib 28 palettable 29 pandas 30 scipy 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 postPatch = '' 38 substituteInPlace pytest.ini \ 39 --replace " --cov=mizani --cov-report=xml" "" 40 ''; 41 42 pythonImportsCheck = [ 43 "mizani" 44 ]; 45 46 meta = with lib; { 47 description = "Scales for Python"; 48 homepage = "https://github.com/has2k1/mizani"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ samuela ]; 51 }; 52}