summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyfunctional/default.nix
blob: 704870e9e14fcae2949489e0dac83403259599f4 (about) (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
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pytestCheckHook,
  dill,
  tabulate,
}:

buildPythonPackage {
  pname = "pyfunctional";
  version = "1.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "EntilZha";
    repo = "PyFunctional";
    rev = "6ed2e9a8a73d97141a8a7edab25e1aefadc256a3"; # missing tag
    hash = "sha256-u7gcZEeg1exb98aVUOorVhxUHqjX50aPTpE5gR6sONI=";
  };

  build-system = [ poetry-core ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail poetry.masonry.api poetry.core.masonry.api \
      --replace-fail "poetry>=" "poetry-core>="
  '';

  dependencies = [
    dill
    tabulate
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "functional" ];

  meta = {
    description = "Python library for creating data pipelines with chain functional programming";
    homepage = "https://github.com/EntilZha/PyFunctional";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}