587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, matplotlib
|
|
, palettable
|
|
, pandas
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mizani";
|
|
version = "0.11.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "has2k1";
|
|
repo = "mizani";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rlzMvIQej8d7LCklNNZeIgtrGaB5A6lDd/1iQG+j+X8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
palettable
|
|
pandas
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace " --cov=mizani --cov-report=xml" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"mizani"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Scales for Python";
|
|
homepage = "https://github.com/has2k1/mizani";
|
|
changelog = "https://github.com/has2k1/mizani/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ samuela ];
|
|
};
|
|
}
|