2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
astor,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
git,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
interface-meta,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
scipy,
|
|
|
|
sympy,
|
|
|
|
typing-extensions,
|
|
|
|
wrapt,
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "formulaic";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.0.1";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewwardrop";
|
|
|
|
repo = "formulaic";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-qivWv1LtFkW55tVKD/Zjd8Q5gVbxhDpZ0inkV6NR7bA=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
astor
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
wrapt
|
|
|
|
typing-extensions
|
|
|
|
interface-meta
|
|
|
|
sympy
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "formulaic" ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "tests/transforms/test_poly.py" ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "High-performance implementation of Wilkinson formulas";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://matthewwardrop.github.io/formulaic/";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/matthewwardrop/formulaic/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ swflint ];
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|