depot/third_party/nixpkgs/pkgs/development/python-modules/cookiecutter/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

72 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPyPy,
setuptools,
pytest,
pytest-cov,
pytest-mock,
freezegun,
safety,
pre-commit,
jinja2,
binaryornot,
click,
jinja2-time,
requests,
python-slugify,
pyyaml,
arrow,
rich,
}:
buildPythonPackage rec {
pname = "cookiecutter";
version = "2.6.0";
pyproject = true;
# not sure why this is broken
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
hash = "sha256-2yH4Fp6k9P3CQI1IykSFk0neJkf75JSp1sPt/AVCwhw=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
pytest
pytest-cov
pytest-mock
freezegun
safety
pre-commit
];
propagatedBuildInputs = [
binaryornot
jinja2
click
pyyaml
jinja2-time
python-slugify
requests
arrow
rich
];
# requires network access for cloning git repos
doCheck = false;
checkPhase = ''
pytest
'';
meta = with lib; {
homepage = "https://github.com/audreyr/cookiecutter";
description = "A command-line utility that creates projects from project templates";
mainProgram = "cookiecutter";
license = licenses.bsd3;
maintainers = with maintainers; [ kragniz ];
};
}