depot/third_party/nixpkgs/pkgs/development/python-modules/formulaic/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

63 lines
1.1 KiB
Nix

{ 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}";
hash = "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" ];
nativeCheckInputs = [ 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 ];
};
}