Merge pull request #281129 from fabaff/formulaic-fix

python311Packages.formulaic: refactor
This commit is contained in:
Fabian Affolter 2024-01-16 09:47:35 +01:00 committed by GitHub
commit ca65f857bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};
}