depot/third_party/nixpkgs/pkgs/development/python-modules/pyfunctional/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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 ];
};
}