python3Packages.{pyhdfe,linearmodels}: init at {0.2.0,6.1} (#421758)

Changed files
+104
pkgs
development
python-modules
linearmodels
pyhdfe
top-level
+59
pkgs/development/python-modules/linearmodels/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchFromGitHub,
+
cython,
+
formulaic,
+
mypy-extensions,
+
numpy,
+
pandas,
+
pyhdfe,
+
pytestCheckHook,
+
scipy,
+
setuptools,
+
setuptools-scm,
+
statsmodels,
+
}:
+
+
buildPythonPackage rec {
+
pname = "linearmodels";
+
version = "6.1";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "bashtage";
+
repo = "linearmodels";
+
tag = "v${version}";
+
hash = "sha256-oWVBsFSKnv/8AHYP5sxO6+u5+hsOw/uQlOetse5ue88=";
+
};
+
+
build-system = [
+
setuptools
+
setuptools-scm
+
cython
+
];
+
+
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+
dependencies = [
+
formulaic
+
mypy-extensions
+
numpy
+
pandas
+
pyhdfe
+
scipy
+
statsmodels
+
];
+
+
nativeCheckInputs = [ pytestCheckHook ];
+
+
pythonImportsCheck = [ "linearmodels" ];
+
+
meta = {
+
description = "Models for panel data, system regression, instrumental variables and asset pricing";
+
homepage = "https://bashtage.github.io/linearmodels/";
+
changelog = "https://github.com/bashtage/linearmodels/releases/tag/v${version}";
+
license = lib.licenses.ncsa;
+
maintainers = with lib.maintainers; [ jherland ];
+
};
+
}
+41
pkgs/development/python-modules/pyhdfe/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchFromGitHub,
+
numpy,
+
pytestCheckHook,
+
scipy,
+
setuptools,
+
}:
+
+
buildPythonPackage rec {
+
pname = "pyhdfe";
+
version = "0.2.0";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "jeffgortmaker";
+
repo = "pyhdfe";
+
tag = "v${version}";
+
hash = "sha256-UXVQHf4Nmq/zQZtPaLba4TShhpgPUBwPM+zCEa8qaKs=";
+
};
+
+
build-system = [ setuptools ];
+
+
dependencies = [
+
numpy
+
scipy
+
];
+
+
nativeCheckInputs = [ pytestCheckHook ];
+
+
pythonImportsCheck = [ "pyhdfe" ];
+
+
meta = {
+
description = "Python 3 implementation of algorithms for absorbing high dimensional fixed effects";
+
homepage = "https://github.com/jeffgortmaker/pyhdfe";
+
changelog = "https://github.com/jeffgortmaker/pyhdfe/releases/tag/v${version}";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ jherland ];
+
};
+
}
+4
pkgs/top-level/python-packages.nix
···
linear-operator = callPackage ../development/python-modules/linear-operator { };
+
linearmodels = callPackage ../development/python-modules/linearmodels { };
+
lineax = callPackage ../development/python-modules/lineax { };
linecache2 = callPackage ../development/python-modules/linecache2 { };
···
pyhaversion = callPackage ../development/python-modules/pyhaversion { };
pyhcl = callPackage ../development/python-modules/pyhcl { };
+
+
pyhdfe = callPackage ../development/python-modules/pyhdfe { };
pyheck = callPackage ../development/python-modules/pyheck { };