depot/third_party/nixpkgs/pkgs/development/python-modules/mizani/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

58 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, palettable
, pandas
, pytestCheckHook
, pythonOlder
, scipy
, setuptools-scm
}:
buildPythonPackage rec {
pname = "mizani";
version = "0.8.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "has2k1";
repo = pname;
rev = "v${version}";
hash = "sha256-VE0M5/s8/XmmAe8EE/FcHBFGc9ppVWuYOYMuajQeZww=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
matplotlib
palettable
pandas
scipy
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pytest.ini \
--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 ];
};
}