2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, invoke
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-25 14:12:00 +00:00
|
|
|
, setuptools
|
2022-08-12 12:06:08 +00:00
|
|
|
, sphinx-rtd-theme
|
2024-01-25 14:12:00 +00:00
|
|
|
, typing-extensions
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydash";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "7.0.6";
|
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgilland";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "pydash";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-zwtUdP2fFFE5X0SDkBDetAQbKnZ1v24DGdzN3fQLa0A=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/--cov/d" setup.cfg
|
|
|
|
sed -i "/--no-cov/d" setup.cfg
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
invoke
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2024-01-25 14:12:00 +00:00
|
|
|
sphinx-rtd-theme
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pydash"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Disable mypy testing
|
|
|
|
"tests/pytest_mypy_testing/"
|
|
|
|
];
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Python utility libraries for doing stuff in a functional way";
|
|
|
|
homepage = "https://pydash.readthedocs.io";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/dgilland/pydash/blob/v${version}/CHANGELOG.rst";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
};
|
|
|
|
}
|