159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
45 lines
996 B
Nix
45 lines
996 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
dill,
|
|
tabulate,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyfunctional";
|
|
version = "1.4.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "EntilZha";
|
|
repo = "PyFunctional";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-utUmHQw7Y5pQJkwuy8CbPnCrAd/esaf0n1Exr/trcRg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|