python3Packages.pydash: 4.9.3 -> 5.1.0
This commit is contained in:
@@ -1,23 +1,46 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, mock, pytestCheckHook, invoke }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, invoke
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, sphinx_rtd_theme
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydash";
|
||||
version = "4.9.3";
|
||||
version = "5.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dgilland";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-BAyiSnILvujUOFOAkiXSgyozs2Q809pYihHwa+6BHcQ=";
|
||||
hash = "sha256-BAyiSnILvujUOFOAkiXSgyozs2Q809pYihHwa+6BHcQ=";
|
||||
};
|
||||
|
||||
patches = [ ./0001-Only-build-unit-tests.patch ];
|
||||
checkInputs = [
|
||||
invoke
|
||||
mock
|
||||
sphinx_rtd_theme
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkInputs = [ mock pytestCheckHook invoke ];
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
sed -i "/--no-cov/d" setup.cfg
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pydash"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/dgilland/pydash";
|
||||
description = "The kitchen sink of Python utility libraries for doing \"stuff\" in a functional way. Based on the Lo-Dash Javascript library.";
|
||||
description = "Python utility libraries for doing stuff in a functional way";
|
||||
homepage = "https://pydash.readthedocs.io";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user