Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pydash / default.nix
blobb9ac4770f71e9be913f213a808eb0ad5442b4975
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , invoke
5 , mock
6 , pytest7CheckHook
7 , pythonOlder
8 , setuptools
9 , sphinx-rtd-theme
10 , typing-extensions
13 buildPythonPackage rec {
14   pname = "pydash";
15   version = "7.0.6";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "dgilland";
22     repo = "pydash";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-zwtUdP2fFFE5X0SDkBDetAQbKnZ1v24DGdzN3fQLa0A=";
25   };
27   postPatch = ''
28     sed -i "/--cov/d" setup.cfg
29     sed -i "/--no-cov/d" setup.cfg
30   '';
32   nativeBuildInputs = [
33     setuptools
34   ];
36   propagatedBuildInputs = [
37     typing-extensions
38   ];
40   nativeCheckInputs = [
41     invoke
42     mock
43     pytest7CheckHook
44     sphinx-rtd-theme
45   ];
47   pythonImportsCheck = [
48     "pydash"
49   ];
51   disabledTestPaths = [
52     # Disable mypy testing
53     "tests/pytest_mypy_testing/"
54   ];
56   meta = with lib; {
57     description = "Python utility libraries for doing stuff in a functional way";
58     homepage = "https://pydash.readthedocs.io";
59     changelog = "https://github.com/dgilland/pydash/blob/v${version}/CHANGELOG.rst";
60     license = licenses.mit;
61     maintainers = with maintainers; [ ma27 ];
62   };