diff options
author | Samuel W. Flint <swflint@flintfam.org> | 2022-10-01 17:12:44 -0500 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@sap.com> | 2023-03-01 16:13:58 +0100 |
commit | 30ed80066d9e9c81f958a104a0aa77f3a70d7995 (patch) | |
tree | 1558a2d53b32f17a57cdf50e6b7d9bf3b7eb2760 /pkgs/development/python-modules/formulaic/default.nix | |
parent | 02a0ccf413be884f9042a18428a38ba4c9bfb11b (diff) |
python310Packages.formulaic: init at 0.5.2
Diffstat (limited to 'pkgs/development/python-modules/formulaic/default.nix')
-rw-r--r-- | pkgs/development/python-modules/formulaic/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/formulaic/default.nix b/pkgs/development/python-modules/formulaic/default.nix new file mode 100644 index 0000000000000..1f7d875b917a8 --- /dev/null +++ b/pkgs/development/python-modules/formulaic/default.nix @@ -0,0 +1,63 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, hatchling +, hatch-vcs +, git +, astor +, interface-meta +, numpy +, pandas +, scipy +, sympy +, wrapt +, typing-extensions +}: + +buildPythonPackage rec { + pname = "formulaic"; + version = "0.5.2"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "matthewwardrop"; + repo = "formulaic"; + rev = "v${version}"; + sha256 = "sha256-sIvHTuUS/nkcDjRgZCoEOY2negIOsarzH0PeXJsavWc="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + hatchling + hatch-vcs + ]; + + propagatedBuildInputs = [ + astor + numpy + pandas + scipy + wrapt + typing-extensions + interface-meta + sympy + ]; + + pythonImportsCheck = [ "formulaic" ]; + + checkInputs = [ pytestCheckHook ]; + + disabledTestPaths = [ + "tests/transforms/test_poly.py" + ]; + + meta = { + homepage = "https://matthewwardrop.github.io/formulaic/"; + description = "High-performance implementation of Wilkinson formulas for"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ swflint ]; + }; +} |