mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
49 lines
872 B
Nix
49 lines
872 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=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|