2022-01-01 19:04:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-12-13 01:07:56 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, matplotlib
|
|
|
|
, palettable
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
2022-01-01 19:04:28 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
2021-12-13 01:07:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mizani";
|
2022-04-03 01:05:01 +00:00
|
|
|
version = "0.7.4";
|
2022-01-01 19:04:28 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-04-03 06:53:23 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-12-13 01:07:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "has2k1";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-03 06:53:23 +00:00
|
|
|
hash = "sha256-oqbo/aQ5L1nQO8BvXH6/8PBPiWcv2m/LUjwow8+J90w=";
|
2021-12-13 01:07:56 +00:00
|
|
|
};
|
|
|
|
|
2022-01-01 19:04:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
palettable
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
];
|
2021-12-13 01:07:56 +00:00
|
|
|
|
2022-01-01 19:04:28 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-12-13 01:07:56 +00:00
|
|
|
|
2022-01-01 19:04:28 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pytest.ini \
|
|
|
|
--replace " --cov=mizani --cov-report=xml" ""
|
|
|
|
'';
|
2021-12-13 01:07:56 +00:00
|
|
|
|
2022-01-01 19:04:28 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mizani"
|
|
|
|
];
|
2021-12-13 01:07:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Scales for Python";
|
|
|
|
homepage = "https://github.com/has2k1/mizani";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ samuela ];
|
|
|
|
};
|
|
|
|
}
|