Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
hatch-vcs,
hatchling,
interface-meta,
narwhals,
numpy,
pandas,
scipy,
typing-extensions,
wrapt,
pyarrow,
polars,
sympy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "formulaic";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "matthewwardrop";
repo = "formulaic";
tag = "v${version}";
hash = "sha256-mZt+cwk/AaUmmeCj7aLu1QEBqlPUVUqQbYdgETMj/vY=";
};
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
build-system = [
hatchling
hatch-vcs
];
dependencies = [
narwhals
numpy
pandas
scipy
wrapt
typing-extensions
interface-meta
];
optional-dependencies = {
arrow = [ pyarrow ];
polars = [ polars ];
calculus = [ sympy ];
};
nativeCheckInputs = [
pytestCheckHook
]
++ optional-dependencies.arrow
++ optional-dependencies.calculus;
pythonImportsCheck = [ "formulaic" ];
meta = with lib; {
description = "High-performance implementation of Wilkinson formulas";
homepage = "https://matthewwardrop.github.io/formulaic/";
changelog = "https://github.com/matthewwardrop/formulaic/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ swflint ];
};
}