nixpkgs/pkgs/development/python-modules/pydash/default.nix
2022-09-24 14:20:46 +10:00

48 lines
866 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, invoke
, mock
, pytestCheckHook
, pythonOlder
, sphinx-rtd-theme
}:
buildPythonPackage rec {
pname = "pydash";
version = "5.1.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dgilland";
repo = pname;
rev = "v${version}";
hash = "sha256-VbuRzKwPMh5S4GZQYnh0sZOBi4LNFjMuol95tMC43b0=";
};
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; {
description = "Python utility libraries for doing stuff in a functional way";
homepage = "https://pydash.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
};
}