nixpkgs/pkgs/development/python-modules/mizani/default.nix
Gaetan Lepage f3ca2ad4f1 python311Packages.mizani: 0.10.0 -> 0.9.3
Downgrade as latest version plotnine (0.12.4) is not compatible with mizani==0.10.0
2024-01-09 16:50:07 +01:00

58 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, palettable
, pandas
, pytestCheckHook
, pythonOlder
, scipy
, setuptools-scm
}:
buildPythonPackage rec {
pname = "mizani";
version = "0.9.3";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "has2k1";
repo = "mizani";
rev = "refs/tags/v${version}";
hash = "sha256-gZwM8/9ipcA73m1sPCz9oxD7cndli+qX9+gLILdbq1A=";
};
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 ];
};
}