Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ 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.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "matthewwardrop"; repo = "formulaic"; tag = "v${version}"; hash = "sha256-+MyMxtX3DCmluf+8dvo0uulc1AeKE6les1xiRGVWjPU="; };
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 ]; };}