1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 dill,
8 tabulate,
9}:
10
11buildPythonPackage {
12 pname = "pyfunctional";
13 version = "1.4.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "EntilZha";
18 repo = "PyFunctional";
19 rev = "6ed2e9a8a73d97141a8a7edab25e1aefadc256a3"; # missing tag
20 hash = "sha256-u7gcZEeg1exb98aVUOorVhxUHqjX50aPTpE5gR6sONI=";
21 };
22
23 build-system = [ poetry-core ];
24
25 postPatch = ''
26 substituteInPlace pyproject.toml \
27 --replace-fail poetry.masonry.api poetry.core.masonry.api \
28 --replace-fail "poetry>=" "poetry-core>="
29 '';
30
31 dependencies = [
32 dill
33 tabulate
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37 pythonImportsCheck = [ "functional" ];
38
39 meta = {
40 description = "Python library for creating data pipelines with chain functional programming";
41 homepage = "https://github.com/EntilZha/PyFunctional";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ sigmanificient ];
44 };
45}