depot/third_party/nixpkgs/pkgs/development/python-modules/pydash/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02: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 ];
};
}