depot/third_party/nixpkgs/pkgs/development/python-modules/statsmodels/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

38 lines
823 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, nose
, numpy
, scipy
, pandas
, patsy
, cython
, matplotlib
}:
buildPythonPackage rec {
pname = "statsmodels";
version = "0.12.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "8ad7a7ae7cdd929095684118e3b05836c0ccb08b6a01fe984159475d174a1b10";
};
nativeBuildInputs = [ cython ];
checkInputs = [ nose ];
propagatedBuildInputs = [ numpy scipy pandas patsy matplotlib ];
# Huge test suites with several test failures
doCheck = false;
pythonImportsCheck = [ "statsmodels" ];
meta = {
description = "Statistical computations and models for use with SciPy";
homepage = "https://www.github.com/statsmodels/statsmodels";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}