e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
46 lines
796 B
Nix
46 lines
796 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, setuptools
|
|
, six
|
|
, numpy
|
|
, scipy # optional, allows spline-related features (see patsy's docs)
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "patsy";
|
|
version = "0.5.4";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-favFJ1lzCN4OjxiPqiCvfgaom9qjBnVt/HeDaT6havQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"patsy"
|
|
];
|
|
|
|
meta = {
|
|
description = "A Python package for describing statistical models";
|
|
homepage = "https://github.com/pydata/patsy";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ ilya-kolpakov ];
|
|
};
|
|
}
|
|
|