2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchpatch,
|
|
|
|
fetchPypi,
|
|
|
|
pythonAtLeast,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fn";
|
|
|
|
version = "0.4.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
# Python 3.11 changed the API of the `inspect` module and fn was never
|
|
|
|
# updated to adapt; last commit was in 2014.
|
|
|
|
disabled = pythonAtLeast "3.11";
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1nmsjmn8jb4gp22ksx0j0hhdf4y0zm8rjykyy2i6flzimg6q1kgq";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/kachayev/fn.py/commit/a54fc0bd8aeae277de2db726131d249ce607c0c2.patch";
|
|
|
|
hash = "sha256-I0ZISOgVibsc1k7gwSfeW6qV9PspQqdaHlRLr/IusQ8=";
|
2024-06-05 15:53:02 +00:00
|
|
|
excludes = [ "fn/monad.py" ];
|
2022-04-27 09:35:20 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ''
|
|
|
|
Functional programming in Python: implementation of missing
|
|
|
|
features to enjoy FP
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/kachayev/fn.py";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|