at 25.11-pre 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 invoke, 6 mock, 7 pytest7CheckHook, 8 pythonOlder, 9 setuptools, 10 sphinx-rtd-theme, 11 typing-extensions, 12}: 13 14buildPythonPackage rec { 15 pname = "pydash"; 16 version = "8.0.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "dgilland"; 23 repo = "pydash"; 24 tag = "v${version}"; 25 hash = "sha256-4zNljz0U/iQd2DMC43qkdOY/mwtPlizgLmoaB7BVmxw="; 26 }; 27 28 postPatch = '' 29 sed -i "/--cov/d" pyproject.toml 30 sed -i "/--no-cov/d" pyproject.toml 31 ''; 32 33 build-system = [ setuptools ]; 34 35 dependencies = [ typing-extensions ]; 36 37 nativeCheckInputs = [ 38 invoke 39 mock 40 pytest7CheckHook 41 sphinx-rtd-theme 42 ]; 43 44 pythonImportsCheck = [ "pydash" ]; 45 46 disabledTestPaths = [ 47 # Disable mypy testing 48 "tests/pytest_mypy_testing/" 49 ]; 50 51 meta = with lib; { 52 description = "Python utility libraries for doing stuff in a functional way"; 53 homepage = "https://pydash.readthedocs.io"; 54 changelog = "https://github.com/dgilland/pydash/blob/v${version}/CHANGELOG.rst"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ ma27 ]; 57 }; 58}