1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, hatchling
6, hatch-vcs
7, git
8, astor
9, interface-meta
10, numpy
11, pandas
12, scipy
13, sympy
14, wrapt
15, typing-extensions
16}:
17
18buildPythonPackage rec {
19 pname = "formulaic";
20 version = "0.6.6";
21
22 format = "pyproject";
23
24 src = fetchFromGitHub {
25 owner = "matthewwardrop";
26 repo = "formulaic";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-82+j3JAkjltXuzRhdvO4hoesSTWlNCY6w2mn6TsZqGM=";
29 };
30
31 SETUPTOOLS_SCM_PRETEND_VERSION = version;
32
33 nativeBuildInputs = [
34 hatchling
35 hatch-vcs
36 ];
37
38 propagatedBuildInputs = [
39 astor
40 numpy
41 pandas
42 scipy
43 wrapt
44 typing-extensions
45 interface-meta
46 sympy
47 ];
48
49 pythonImportsCheck = [ "formulaic" ];
50
51 nativeCheckInputs = [ pytestCheckHook ];
52
53 disabledTestPaths = [
54 "tests/transforms/test_poly.py"
55 ];
56
57 meta = {
58 homepage = "https://matthewwardrop.github.io/formulaic/";
59 description = "High-performance implementation of Wilkinson formulas for";
60 license = lib.licenses.mit;
61 maintainers = with lib.maintainers; [ swflint ];
62 };
63}