summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyhdfe/default.nix
blob: 6b887dceb83b000195397c7889b066cac23bdaab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  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 ];
  };
}