depot/third_party/nixpkgs/pkgs/development/python-modules/mizani/default.nix
Default email 3e7541c14f Project import generated by Copybara.
GitOrigin-RevId: ff377a78794d412a35245e05428c8f95fef3951f
2022-01-07 12:07:37 +08:00

52 lines
895 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, palettable
, pandas
, pytestCheckHook
, pythonOlder
, scipy
}:
buildPythonPackage rec {
pname = "mizani";
version = "0.7.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "has2k1";
repo = pname;
rev = "v${version}";
sha256 = "04r53dp5jbklv8l9ncgc5wiq0gx25y73h65gmmbbfkxwgsl3w78l";
};
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";
license = licenses.bsd3;
maintainers = with maintainers; [ samuela ];
};
}