Files
nixpkgs/pkgs/development/python-modules/formulaic/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

71 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
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;
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 = {
description = "High-performance implementation of Wilkinson formulas";
homepage = "https://matthewwardrop.github.io/formulaic/";
changelog = "https://github.com/matthewwardrop/formulaic/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ swflint ];
};
}