1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-06 10:39:29 +03:00
nixpkgs/pkgs/development/python-modules/pydash/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
866 B
Nix
Raw Normal View History

{ stdenv
, lib
2022-01-24 21:37:43 +01:00
, buildPythonPackage
, fetchFromGitHub
, invoke
, mock
, pytestCheckHook
, pythonOlder
, sphinx-rtd-theme
2022-01-24 21:37:43 +01:00
}:
2021-03-19 21:11:32 +01:00
buildPythonPackage rec {
pname = "pydash";
version = "5.1.1";
format = "pyproject";
2022-01-24 21:37:43 +01:00
disabled = pythonOlder "3.6";
2021-03-19 21:11:32 +01:00
src = fetchFromGitHub {
owner = "dgilland";
repo = pname;
rev = "v${version}";
hash = "sha256-VbuRzKwPMh5S4GZQYnh0sZOBi4LNFjMuol95tMC43b0=";
2021-03-19 21:11:32 +01:00
};
2022-01-24 21:37:43 +01:00
checkInputs = [
invoke
mock
sphinx-rtd-theme
2022-01-24 21:37:43 +01:00
pytestCheckHook
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
sed -i "/--no-cov/d" setup.cfg
'';
2021-03-19 21:11:32 +01:00
2022-01-24 21:37:43 +01:00
pythonImportsCheck = [
"pydash"
];
2021-03-19 21:11:32 +01:00
meta = with lib; {
2022-01-24 21:37:43 +01:00
description = "Python utility libraries for doing stuff in a functional way";
homepage = "https://pydash.readthedocs.io";
2021-03-19 21:11:32 +01:00
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
};
}