2018-04-28 20:02:49 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, nose
|
|
|
|
, six
|
|
|
|
, numpy
|
|
|
|
, scipy # optional, allows spline-related features (see patsy's docs)
|
|
|
|
, parameterized
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "patsy";
|
2021-10-08 23:23:11 +01:00
|
|
|
version = "0.5.2";
|
2018-04-28 20:02:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-08 23:23:11 +01:00
|
|
|
sha256 = "5053de7804676aba62783dbb0f23a2b3d74e35e5bfa238b88b7cbf148a38b69d";
|
2018-04-28 20:02:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose parameterized ];
|
|
|
|
checkPhase = "nosetests -v";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Python package for describing statistical models";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pydata/patsy";
|
2018-04-28 20:02:49 +01:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ ilya-kolpakov ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|