nixpkgs/pkgs/development/python-modules/cookiecutter/default.nix
2023-08-04 07:15:36 +08:00

55 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchPypi, isPyPy
, pytest, pytest-cov, pytest-mock, freezegun, safety, pre-commit
, jinja2, future, binaryornot, click, jinja2-time, requests
, python-slugify
, pyyaml
, arrow
, rich
}:
buildPythonPackage rec {
pname = "cookiecutter";
version = "2.3.0";
# not sure why this is broken
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
hash = "sha256-lCp5SYF0f21/Q51uSdOdyRqaZBKDYUFgyTxHTHLCliE=";
};
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 ];
};
}