nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 897 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, invoke 6, mock 7, pytestCheckHook 8, pythonOlder 9, sphinx_rtd_theme 10}: 11 12buildPythonPackage rec { 13 pname = "pydash"; 14 version = "5.1.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "dgilland"; 21 repo = pname; 22 rev = "v${version}"; 23 hash = "sha256-BAyiSnILvujUOFOAkiXSgyozs2Q809pYihHwa+6BHcQ="; 24 }; 25 26 checkInputs = [ 27 invoke 28 mock 29 sphinx_rtd_theme 30 pytestCheckHook 31 ]; 32 33 postPatch = '' 34 sed -i "/--cov/d" setup.cfg 35 sed -i "/--no-cov/d" setup.cfg 36 ''; 37 38 pythonImportsCheck = [ 39 "pydash" 40 ]; 41 42 meta = with lib; { 43 broken = stdenv.isDarwin; 44 description = "Python utility libraries for doing stuff in a functional way"; 45 homepage = "https://pydash.readthedocs.io"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ ma27 ]; 48 }; 49}