depot/third_party/nixpkgs/pkgs/development/python-modules/mizani/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

37 lines
771 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, matplotlib
, palettable
, pandas
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mizani";
version = "0.7.3";
src = fetchFromGitHub {
owner = "has2k1";
repo = pname;
rev = "v${version}";
sha256 = "04r53dp5jbklv8l9ncgc5wiq0gx25y73h65gmmbbfkxwgsl3w78l";
};
postPatch = ''
substituteInPlace pytest.ini --replace " --cov=mizani --cov-report=xml" ""
'';
propagatedBuildInputs = [ matplotlib palettable pandas ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mizani" ];
meta = with lib; {
description = "Scales for Python";
homepage = "https://github.com/has2k1/mizani";
license = licenses.bsd3;
maintainers = with maintainers; [ samuela ];
};
}