mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
42 lines
884 B
Nix
42 lines
884 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
numpy,
|
|
scipy, # optional, allows spline-related features (see patsy's docs)
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "patsy";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pydata";
|
|
repo = "patsy";
|
|
tag = "v${version}";
|
|
hash = "sha256-gtkvFxNzMFiBBiuKhelSSsTilA/fLJSC5QHqDLiRrWE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "patsy" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/pydata/patsy/releases/tag/v${version}";
|
|
description = "Python package for describing statistical models";
|
|
homepage = "https://github.com/pydata/patsy";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ ilya-kolpakov ];
|
|
};
|
|
}
|