diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-15 13:35:18 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-15 13:35:18 +0100 |
commit | be44cd6247725b7ed37bff68bd6f8eca21bc700a (patch) | |
tree | 7c3fdf0348ea2be7cf72ca97f7e46ef5d073143b /pkgs/development/python-modules/formulaic/default.nix | |
parent | 817c314ea6911512f61a21cc0cf8296e3b085145 (diff) |
python311Packages.formulaic: refactor
Diffstat (limited to 'pkgs/development/python-modules/formulaic/default.nix')
-rw-r--r-- | pkgs/development/python-modules/formulaic/default.nix | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/formulaic/default.nix b/pkgs/development/python-modules/formulaic/default.nix index f6aa82c9682c5..bf448a42c95bc 100644 --- a/pkgs/development/python-modules/formulaic/default.nix +++ b/pkgs/development/python-modules/formulaic/default.nix @@ -1,25 +1,27 @@ { lib +, astor , buildPythonPackage , fetchFromGitHub -, pytestCheckHook -, hatchling -, hatch-vcs , git -, astor +, hatch-vcs +, hatchling , interface-meta , numpy , pandas +, pytestCheckHook +, pythonOlder , scipy , sympy -, wrapt , typing-extensions +, wrapt }: buildPythonPackage rec { pname = "formulaic"; version = "1.0.1"; + pyproject = true; - format = "pyproject"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "matthewwardrop"; @@ -28,6 +30,8 @@ buildPythonPackage rec { hash = "sha256-qivWv1LtFkW55tVKD/Zjd8Q5gVbxhDpZ0inkV6NR7bA="; }; + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + nativeBuildInputs = [ hatchling hatch-vcs @@ -44,18 +48,23 @@ buildPythonPackage rec { sympy ]; - pythonImportsCheck = [ "formulaic" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ + "formulaic" + ]; disabledTestPaths = [ "tests/transforms/test_poly.py" ]; - meta = { + meta = with lib; { + description = "High-performance implementation of Wilkinson formulas"; homepage = "https://matthewwardrop.github.io/formulaic/"; - description = "High-performance implementation of Wilkinson formulas for"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ swflint ]; + changelog = "https://github.com/matthewwardrop/formulaic/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ swflint ]; }; } |