depot/third_party/nixpkgs/pkgs/development/python-modules/pydash/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

49 lines
897 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, invoke
, mock
, pytestCheckHook
, pythonOlder
, sphinx_rtd_theme
}:
buildPythonPackage rec {
pname = "pydash";
version = "5.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dgilland";
repo = pname;
rev = "v${version}";
hash = "sha256-BAyiSnILvujUOFOAkiXSgyozs2Q809pYihHwa+6BHcQ=";
};
checkInputs = [
invoke
mock
sphinx_rtd_theme
pytestCheckHook
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
sed -i "/--no-cov/d" setup.cfg
'';
pythonImportsCheck = [
"pydash"
];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Python utility libraries for doing stuff in a functional way";
homepage = "https://pydash.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
};
}