depot/third_party/nixpkgs/pkgs/development/python-modules/mizani/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
# build-system
setuptools-scm,
# dependencies
matplotlib,
palettable,
pandas,
scipy,
# checks
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mizani";
version = "0.12.2";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "has2k1";
repo = "mizani";
rev = "refs/tags/v${version}";
hash = "sha256-aTc8LC/2zLrrTfOXABWs049m752PctpvlguA6qhyhp8=";
};
build-system = [ setuptools-scm ];
dependencies = [
matplotlib
palettable
pandas
scipy
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=mizani --cov-report=xml" ""
'';
pythonImportsCheck = [ "mizani" ];
meta = {
description = "Scales for Python";
homepage = "https://github.com/has2k1/mizani";
changelog = "https://github.com/has2k1/mizani/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ samuela ];
};
}