2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonOlder,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools-scm,
|
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
matplotlib,
|
|
|
|
palettable,
|
|
|
|
pandas,
|
|
|
|
scipy,
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# checks
|
|
|
|
pytestCheckHook,
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mizani";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.12.2";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "has2k1";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "mizani";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-aTc8LC/2zLrrTfOXABWs049m752PctpvlguA6qhyhp8=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-01-07 04:07:37 +00:00
|
|
|
matplotlib
|
|
|
|
palettable
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
postPatch = ''
|
2023-05-24 13:37:59 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
2022-01-07 04:07:37 +00:00
|
|
|
--replace " --cov=mizani --cov-report=xml" ""
|
|
|
|
'';
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mizani" ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "Scales for Python";
|
|
|
|
homepage = "https://github.com/has2k1/mizani";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/has2k1/mizani/releases/tag/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ samuela ];
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
}
|