depot/third_party/nixpkgs/pkgs/development/python-modules/cookiecutter/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

60 lines
1.1 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.5.0";
pyproject = true;
# not sure why this is broken
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
hash = "sha256-5h6QNHSOP0G4vSwR8A0DB4S0hxHE1cQjY8UJiaZTMew=";
};
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";
license = licenses.bsd3;
maintainers = with maintainers; [ kragniz ];
};
}